Included Files
Preprocessor definitions
#define _ARP_H
#define ARPHRD_ETHER 1
#define ARPOP_REQUEST 1
#define ARPOP_REPLY 2
typedef struct ether_arp ETHERARP
struct ether_arp
|
|
{
|
|
u_short arp_hrd;
|
|
u_short arp_pro;
|
|
u_char arp_hln;
|
|
u_char arp_pln;
|
|
u_short arp_op;
|
|
u_char arp_sha[6];
|
|
u_long arp_spa;
|
|
u_char arp_tha[6];
|
|
u_long arp_tpa;
|
|
}
|
|
typedef struct {...} ARPFRAME
struct
|
|
{
|
|
ETHERHDR eth_hdr;
|
|
ETHERARP eth_arp;
|
|
}
|
|
typedef struct {...} ARPENTRY
struct
|
|
{
|
|
u_long ae_ip;
|
|
u_char ae_ha[6];
|
|
}
|
|
External Variables
arpframe
extern ARPFRAME arpframe