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

📄 dhcpif.h

📁 dm642网络传输程序
💻 H
字号:
//--------------------------------------------------------------------------
// 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 + -