1 /* 2 * Copyright (c) 1988, 1992 The University of Utah and the Center 3 * for Software Science (CSS). 4 * Copyright (c) 1992, 1993 5 * The Regents of the University of California. All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * the Center for Software Science of the University of Utah Computer 9 * Science Department. CSS requests users of this software to return 10 * to css-dist@cs.utah.edu any improvements that they make and grant 11 * CSS redistribution rights. 12 * 13 * %sccs.include.redist.c% 14 * 15 * @(#)rmp.h 8.1 (Berkeley) 06/04/93 16 * 17 * Utah $Hdr: rmp.h 3.1 92/07/06$ 18 * Author: Jeff Forys, University of Utah CSS 19 */ 20 21 /* 22 * Define MIN/MAX sizes of RMP (ethernet) packet. 23 * For ease of computation, the 4 octet CRC field is not included. 24 * 25 * MCLBYTES is for bpfwrite(); it is adamant about using a cluster. 26 */ 27 28 #define RMP_MAX_PACKET MIN(1514,MCLBYTES) 29 #define RMP_MIN_PACKET 60 30 31 /* 32 * Define RMP/Ethernet Multicast address (9:0:9:0:0:4) and its length. 33 */ 34 #define RMP_ADDR { 0x9, 0x0, 0x9, 0x0, 0x0, 0x4 } 35 #define RMP_ADDRLEN 6 36 37 /* 38 * Define IEEE802.2 (Logical Link Control) information. 39 */ 40 #define IEEE_DSAP_HP 0xF8 /* Destination Service Access Point */ 41 #define IEEE_SSAP_HP 0xF8 /* Source Service Access Point */ 42 #define IEEE_CNTL_HP 0x0300 /* Type 1 / I format control information */ 43 44 #define HPEXT_DXSAP 0x608 /* HP Destination Service Access Point */ 45 #define HPEXT_SXSAP 0x609 /* HP Source Service Access Point */ 46 47 /* 48 * 802.3-style "Ethernet" header. 49 */ 50 51 struct hp_hdr { 52 u_char daddr[RMP_ADDRLEN]; 53 u_char saddr[RMP_ADDRLEN]; 54 u_short len; 55 }; 56 57 /* 58 * HP uses 802.2 LLC with their own local extensions. This struct makes 59 * sence out of this data (encapsulated in the above 802.3 packet). 60 */ 61 62 struct hp_llc { 63 u_char dsap; /* 802.2 DSAP */ 64 u_char ssap; /* 802.2 SSAP */ 65 u_short cntrl; /* 802.2 control field */ 66 u_short filler; /* HP filler (must be zero) */ 67 u_short dxsap; /* HP extended DSAP */ 68 u_short sxsap; /* HP extended SSAP */ 69 }; 70