plan 9 kernel history: overview | file list | diff list

ss/arp.h (diff list | history)

1991/0329/sys/src/9/ss/arp.h:1,401993/0501/sys/src/9/ss/arp.h:0 (short | long)
Deleted.
rsc Mon Mar 7 10:33:04 2005
1991/0329    
typedef struct Arppkt	Arppkt; 
typedef struct Arpentry	Arpentry; 
typedef struct Arpstats	Arpstats; 
                 
/* Format of ethernet arp request */ 
struct Arppkt { 
	uchar	d[6]; 
	uchar	s[6]; 
	uchar	type[2]; 
	uchar	hrd[2]; 
	uchar	pro[2]; 
	uchar	hln; 
	uchar	pln; 
	uchar	op[2]; 
	uchar	sha[6]; 
	uchar	spa[4]; 
	uchar	tha[6]; 
	uchar	tpa[4]; 
	}; 
                 
/* Format of request from starp to user level arpd */ 
struct Arpentry { 
	uchar	etaddr[6]; 
	uchar	ipaddr[4]; 
	}; 
                 
/* Arp cache statistics */ 
struct Arpstats { 
	int	hit; 
	int	miss; 
	int	failed; 
	}; 
                 
#define ET_ARP		0x0806 
#define ET_RARP		0x8035 
                 
#define ARP_REQUEST	1 
#define ARP_REPLY	2 
#define RARP_REQUEST	3 
#define RARP_REPLY	4 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)