155576Sbostic /* 255576Sbostic * Copyright (c) 1988, 1992 The University of Utah and the Center 355576Sbostic * for Software Science (CSS). 4*61443Sbostic * Copyright (c) 1992, 1993 5*61443Sbostic * The Regents of the University of California. All rights reserved. 655576Sbostic * 755576Sbostic * This code is derived from software contributed to Berkeley by 855576Sbostic * the Center for Software Science of the University of Utah Computer 955576Sbostic * Science Department. CSS requests users of this software to return 1055576Sbostic * to css-dist@cs.utah.edu any improvements that they make and grant 1155576Sbostic * CSS redistribution rights. 1255576Sbostic * 1355576Sbostic * %sccs.include.redist.c% 1455576Sbostic * 15*61443Sbostic * @(#)rmp.h 8.1 (Berkeley) 06/04/93 1655576Sbostic * 1755576Sbostic * Utah $Hdr: rmp.h 3.1 92/07/06$ 1855576Sbostic * Author: Jeff Forys, University of Utah CSS 1955576Sbostic */ 2055576Sbostic 2155576Sbostic /* 2255576Sbostic * Define MIN/MAX sizes of RMP (ethernet) packet. 2355576Sbostic * For ease of computation, the 4 octet CRC field is not included. 2455576Sbostic * 2555576Sbostic * MCLBYTES is for bpfwrite(); it is adamant about using a cluster. 2655576Sbostic */ 2755576Sbostic 2855576Sbostic #define RMP_MAX_PACKET MIN(1514,MCLBYTES) 2955576Sbostic #define RMP_MIN_PACKET 60 3055576Sbostic 3155576Sbostic /* 3255576Sbostic * Define RMP/Ethernet Multicast address (9:0:9:0:0:4) and its length. 3355576Sbostic */ 3455576Sbostic #define RMP_ADDR { 0x9, 0x0, 0x9, 0x0, 0x0, 0x4 } 3555576Sbostic #define RMP_ADDRLEN 6 3655576Sbostic 3755576Sbostic /* 3855576Sbostic * Define IEEE802.2 (Logical Link Control) information. 3955576Sbostic */ 4055576Sbostic #define IEEE_DSAP_HP 0xF8 /* Destination Service Access Point */ 4155576Sbostic #define IEEE_SSAP_HP 0xF8 /* Source Service Access Point */ 4255576Sbostic #define IEEE_CNTL_HP 0x0300 /* Type 1 / I format control information */ 4355576Sbostic 4455576Sbostic #define HPEXT_DXSAP 0x608 /* HP Destination Service Access Point */ 4555576Sbostic #define HPEXT_SXSAP 0x609 /* HP Source Service Access Point */ 4655576Sbostic 4755576Sbostic /* 4855576Sbostic * 802.3-style "Ethernet" header. 4955576Sbostic */ 5055576Sbostic 5155576Sbostic struct hp_hdr { 5255576Sbostic u_char daddr[RMP_ADDRLEN]; 5355576Sbostic u_char saddr[RMP_ADDRLEN]; 5455576Sbostic u_short len; 5555576Sbostic }; 5655576Sbostic 5755576Sbostic /* 5855576Sbostic * HP uses 802.2 LLC with their own local extensions. This struct makes 5955576Sbostic * sence out of this data (encapsulated in the above 802.3 packet). 6055576Sbostic */ 6155576Sbostic 6255576Sbostic struct hp_llc { 6355576Sbostic u_char dsap; /* 802.2 DSAP */ 6455576Sbostic u_char ssap; /* 802.2 SSAP */ 6555576Sbostic u_short cntrl; /* 802.2 control field */ 6655576Sbostic u_short filler; /* HP filler (must be zero) */ 6755576Sbostic u_short dxsap; /* HP extended DSAP */ 6855576Sbostic u_short sxsap; /* HP extended SSAP */ 6955576Sbostic }; 70