arp.h

来自「开发工具用EMBEST IDE进行开发,该程序是一个S3C44B0直接驱动网卡的」· C头文件 代码 · 共 26 行

H
26
字号
//-----------------------------------------------------------------------------
// ARP.H
//
//-----------------------------------------------------------------------------
#ifndef _ARP_H
#define _ARP_H


// Allow up to 10 entries in ARP cache
#define CACHESIZE		20

// ARP cache entry expiration time = 20 minutes
#define CACHETIME		20		// 60 second intervals

// Allow 2 seconds to receive an ARP reply
#define ARP_TIMEOUT	 4		  // 0.5 second intervals

void init_arp(void);
unsigned char  * arp_resolve(unsigned long);
void arp_rcve(unsigned char *);
void age_arp_cache(void);
void arp_retransmit(void);



#endif /* _ARP_H */

⌨️ 快捷键说明

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