bootp.h
来自「opentcp_mcf5282原代码」· C头文件 代码 · 共 48 行
H
48 行
/***************************************************************************************
File: bootp.h
Date: 7.10.2002
Version: 0.1
Author: Jari Lahti (jari@violasystems.com
Description: Funnction API prototypes and constants of BOOTP Client
Version Info: 7.10.2002 - First version (Jari Lahti)
***************************************************************************************/
#ifndef __INCLUDE_OPENTCP_BOOTPC_H__
#define __INCLUDE_OPENTCP_BOOTPC_H__
#include "datatypes.h"
#define BOOTP_RETRY_TOUT 5
#define BOOTP_CLIENTPORT 68
#define BOOTP_SERVERPORT 67
#define BOOTPC_STATE_DISABLED 0
#define BOOTPC_STATE_ENABLED 1
#define BOOTPC_STATE_REQUEST_NEEDED 2
#define BOOTPC_STATE_WAITING_REPLY 3
#define BOOTPC_STATE_REPLY_GET 4
#define BOOTP_OPTION_SUBNETMASK 1
#define BOOTP_OPTION_DEFGW 3
#define BOOTP_REPLY 2
#define BOOTP_HWLEN_ETHERNET 6
#define BOOTP_HTYPE_ETHERNET 1
INT8 init_bootpc(UINT8);
INT8 bootpc_enable(void);
void bootpc_stop(void);
void bootpc_run(void);
INT32 bootpc_eventlistener(INT8, UINT8, UINT32, UINT16, UINT16, UINT16);
#endif
/* EOF */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?