/********************************************************Copyright.IBM*****/
/*                                                                        */
/*                                                                        */
/*      Multi-Protocol Transport Services                                 */
/*                                                                        */
/*      Licensed Materials - Property of IBM (R)                          */
/*      5622-069                                                          */
/*      (C) Copyright IBM Corp. 1993, All right reserved.                 */
/*      US Government Users Restricted Rights - Use, duplication,         */
/*      disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */
/*                                                                        */
/********************************************************Copyright.IBM*****/




/*
 * 5799-WZQ (C) COPYRIGHT IBM CORPORATION 1987
 * LICENSED MATERIALS - PROPERTY OF IBM
 * REFER TO COPYRIGHT INSTRUCTIONS FORM NUMBER G120-2083
 */
/* $Header:if_lan.h 9.0$ */
/* $ACIS:if_lan.h 9.0$ */
/* $Source: /ibm/acis/usr/sys/netinet/RCS/if_lan.h,v $ */

#if !defined(lint) && !defined(LOCORE) && defined(RCS_HDRS)
static char *rcsidif_lan = "$Header:if_lan.h 9.0$";
#endif


/* Bridge and routing field parameters */
#define LAN_MAX_BRIDGE		8	/* maximum hop count */
#define LAN_RI_PRESENT		0x80	/* bit 0, byte 0 source address on for ri */
#define LAN_RCF_BROADCAST	0x8000	/* all-rings broadcast */
#define LAN_RCF_LEN_MASK 	0x1f00	/* length field in routing control */
#define LAN_RCF_DIRECTION	0x0080	/* routing direction bit */
#define LAN_RCF_FRAME2K		0x0020	/* max frame size */

#define LAN_L_ADDR	6
/* Lan header includes control fields, source and destination
 addresses, and llc fields: */
struct mac_hdr {
	char pcf0;
	char pcf1;
	char to_addr[LAN_L_ADDR];
	char from_addr[LAN_L_ADDR];
	unsigned short rcf;
	unsigned short rseg[LAN_MAX_BRIDGE];
};

#define MIN_MAC_HDR_SIZE 14	/* mac header size if no routing info */

