?? dhcp.h
字號:
/******************************************************************************
*
* Copyright (c) 2008 Nuvoton Tech. Corp.
* All rights reserved.
*
* $Workfile: DHCP.H $
*
* Created by :
******************************************************************************/
#ifndef _DHCP_H_
#define _DHCP_H_
/* DHCP client and server ports */
#define SERVER_PORT 67
#define CLIENT_PORT 68
#define DHCP_DISCOVER 1
#define DHCP_OFFER 2
#define DHCP_REQUEST 3
#define DHCP_DECLINE 4
#define DHCP_ACK 5
#define DHCP_NAK 6
#define DHCP_RELEASE 7
#define DHCP_INFORM 8
#define BOOTP_REQUEST 1
#define BOOTP_REPLY 2
typedef struct DhcpHdr
{
UCHAR op_code; /* operation */
UCHAR hw_type; /* hardware type */
UCHAR hw_len; /* hardware address length */
UCHAR hops; /* gateway hops */
UINT32 tx_id; /* transaction ID */
UINT16 seconds; /* seconds since boot began */
UINT16 flags; /* flags */
UINT32 clientIP; /* client IP address */
UINT32 yourIP; /* your IP address */
UINT32 serverIP; /* server IP address */
UINT32 gatewayIP; /* gateway IP address */
UCHAR client_hw_addr[16]; /* client hardware address */
UCHAR serverName[64]; /* server host name */
UCHAR bootFile[128]; /* boot bootFile name */
UCHAR options[312]; /* options */
} DHCP_HDR_T;
#define DHCP_OPT_OFFSET 236 /* size without options */
#endif /* _DHCP_H_ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -