Plan 9 from Bell Labs’s /usr/web/sources/extra/9hist/port/arp.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


## diffname port/arp.h 1991/0424
## diff -e /dev/null /n/bootesdump/1991/0424/sys/src/9/port/arp.h
0a
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];
	};

#define ARPSIZE		42

/* 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
.
## diffname port/arp.h 1992/0213
## diff -e /n/bootesdump/1991/0424/sys/src/9/port/arp.h /n/bootesdump/1992/0213/sys/src/9/port/arp.h
0a
/*
 *  this file used by (at least) the kernel, arpd, snoopy, tboot
 */
.
## diffname port/arp.h 1993/0804 # deleted
## diff -e /n/bootesdump/1992/0213/sys/src/9/port/arp.h /n/fornaxdump/1993/0804/sys/src/brazil/port/arp.h
1,45d

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.