xref: /original-bsd/sys/deprecated/netrmp/rmp.h (revision e59fb703)
1 /*
2  * Copyright (c) 1988 University of Utah.
3  * Copyright (c) 1990 The Regents of the University of California.
4  * All rights reserved.
5  *
6  * This code is derived from software contributed to Berkeley by
7  * the Systems Programming Group of the University of Utah Computer
8  * Science Department.
9  *
10  * %sccs.include.redist.c%
11  *
12  * from: Utah $Hdr: rmp.h 1.3 89/06/07$
13  *
14  *	@(#)rmp.h	7.1 (Berkeley) 05/08/90
15  */
16 
17 /*
18  *  Define MIN/MAX sizes of RMP (ethernet) packet.  For ease of computation,
19  *  the 4 octet CRC field is not included.
20  */
21 
22 #define	RMP_MAX_PACKET	1514
23 #define	RMP_MIN_PACKET	60
24 
25 
26 /*
27  *  Define IEEE802.2 (Logical Link Control) information.
28  */
29 
30 #define	ETHERTYPE_IEEE	0	/* hack hack hack */
31 
32 #define	IEEE802LEN_MIN	40
33 #define IEEE802LEN_MAX	1500
34 
35 #define	IEEE_DSAP_HP	0xF8	/* Destination Service Access Point */
36 #define	IEEE_SSAP_HP	0xF8	/* Source Service Access Point */
37 #define	IEEE_CNTL_HP	0x0300	/* Type 1 / I format control information */
38 
39 #define	HPEXT_DXSAP	0x608	/* HP Destination Service Access Point */
40 #define	HPEXT_SXSAP	0x609	/* HP Source Service Access Point */
41 
42 /*
43  * HP uses 802.2 LLC with their own local extensions.  This struct makes
44  * sence out of this data (encapsulated in the 802.3 packet).
45  */
46 
47 struct hp_llc {
48 	u_char	dsap;		/* 802.2 DSAP */
49 	u_char	ssap;		/* 802.2 SSAP */
50 	u_short	cntrl;		/* 802.2 control field */
51 	u_short	filler;		/* HP filler (must be zero) */
52 	u_short	dxsap;		/* HP extended DSAP */
53 	u_short	sxsap;		/* HP extended SSAP */
54 };
55 
56 
57 /*
58  * Protocol(s)
59  */
60 
61 #define RMPPROTO_BOOT	1		/* RMP boot protocol */
62 
63 #if	defined(KERNEL) & defined(RMP)
64 extern	struct	domain rmpdomain;
65 extern	struct	protosw rmpsw[];
66 #endif
67