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

📄 bootp.h

📁 opentcp_mcf5282原代码
💻 H
字号:
/***************************************************************************************
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -