⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dhcpif.h

📁 本软件是TI公司免费提供的网络开发包 现在好象很难找到,有黑心的公司把它改一改,就卖价5000元,对网络开发和网络驱动开发有参考价值
💻 H
字号:
/*
 *  Copyright 2006 by Texas Instruments Incorporated.
 *  All rights reserved. Property of Texas Instruments Incorporated.
 *  Restricted rights to use, duplicate or disclose this code are
 *  granted through contract.
 *
 *  @(#) TCP/IP_Network_Developers_Kit 1.91.00.08 08-22-2006 (ndk-a08)
 */
//--------------------------------------------------------------------------
// Network Tools Library
//--------------------------------------------------------------------------
// DHCPIF.H
//
// Interface to the tools available in NETTOOL.LIB
//
// Copyright 1999, 2000 by Texas Instruments Inc.
//--------------------------------------------------------------------------

#ifndef _DHCPIF_H_
#define _DHCPIF_H_

//
// DCHP CLIENT SERVICE
//

// Running Codes (State codes are all less than 0x10)
#define DHCPCODE_IPADD          0x11    // Client has added an address
#define DHCPCODE_IPREMOVE       0x12    // IP address removed and CFG erased
#define DHCPCODE_IPRENEW        0x13    // IP renewed, DHCP config space reset

//
// DCHP Parameter Structure
//
#define DHCP_MAX_OPTIONS        64  // Max number allowed options
typedef struct _ntparam_dhcp {
    UINT8   *pOptions;  // options to request
    int     len;        // length of options list
} NTPARAM_DHCP;

//
// DHCPOpen
//
// This function is called to initiate DHCP control of the IP
// address binding on the interface specified by hIF
//
// Compatible with NT_MODE_IFIDX only.
//
// Returns a HANDLE to the DHCP instance
//
_extern HANDLE DHCPOpen( NTARGS *pNTA, NTPARAM_DHCP *pNTP );

//
// DHCPClose
//
// This function terminates DHCP control and free the supplied
// instance handle.
//
_extern void  DHCPClose( HANDLE hDHCP );

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -