138465Smsmith/* 238465Smsmith * Copyright (c) 1993, 1994, 1997 338465Smsmith * The Regents of the University of California. All rights reserved. 438465Smsmith * 538465Smsmith * Redistribution and use in source and binary forms, with or without 638465Smsmith * modification, are permitted provided that: (1) source code distributions 738465Smsmith * retain the above copyright notice and this paragraph in its entirety, (2) 838465Smsmith * distributions including binary code include the above copyright notice and 938465Smsmith * this paragraph in its entirety in the documentation or other materials 1038465Smsmith * provided with the distribution, and (3) all advertising materials mentioning 1138465Smsmith * features or use of this software display the following acknowledgement: 1238465Smsmith * ``This product includes software developed by the University of California, 1338465Smsmith * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 1438465Smsmith * the University nor the names of its contributors may be used to endorse 1538465Smsmith * or promote products derived from this software without specific prior 1638465Smsmith * written permission. 1738465Smsmith * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 1838465Smsmith * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 1938465Smsmith * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 2038465Smsmith */ 2138465Smsmith 2238465Smsmith/* 2338465Smsmith * Definitions for information in the LLC header. 2438465Smsmith */ 2538465Smsmith 2650477Speter#define LLC_U_FMT 3 2738465Smsmith#define LLC_GSAP 1 2838465Smsmith#define LLC_IG 1 /* Individual / Group */ 29234789Smarius#define LLC_S_FMT 1 30234789Smarius 31234789Smarius#define LLC_U_POLL 0x10 3238465Smsmith#define LLC_IS_POLL 0x0100 3340553Smsmith#define LLC_XID_FI 0x81 3478195Speter 3538465Smsmith#define LLC_U_CMD_MASK 0xef 3638465Smsmith#define LLC_UI 0x03 3738465Smsmith#define LLC_UA 0x63 3838465Smsmith#define LLC_DISC 0x43 3938465Smsmith#define LLC_DM 0x0f 4038465Smsmith#define LLC_SABME 0x6f 4138465Smsmith#define LLC_TEST 0xe3 4238465Smsmith#define LLC_XID 0xaf 4338465Smsmith#define LLC_FRMR 0x87 4438465Smsmith 4538465Smsmith#define LLC_S_CMD_MASK 0x0f 4638465Smsmith#define LLC_RR 0x0001 4738465Smsmith#define LLC_RNR 0x0005 4886090Sjhb#define LLC_REJ 0x0009 49185029Spjd 50163897Smarcel#define LLC_IS_NR(is) (((is) >> 9) & 0x7f) 51201941Smarcel#define LLC_I_NS(is) (((is) >> 1) & 0x7f) 5238465Smsmith 5338465Smsmith/* 5438465Smsmith * 802.2 LLC SAP values. 5538465Smsmith */ 5638465Smsmith 5738465Smsmith#ifndef LLCSAP_NULL 5838465Smsmith#define LLCSAP_NULL 0x00 59294985Ssmh#endif 60294985Ssmh#ifndef LLCSAP_GLOBAL 61294985Ssmh#define LLCSAP_GLOBAL 0xff 62294985Ssmh#endif 6338465Smsmith#ifndef LLCSAP_8021B_I 6438465Smsmith#define LLCSAP_8021B_I 0x02 6564187Sjhb#endif 6664187Sjhb#ifndef LLCSAP_8021B_G 6738465Smsmith#define LLCSAP_8021B_G 0x03 6864187Sjhb#endif 6964187Sjhb#ifndef LLCSAP_IP 7064187Sjhb#define LLCSAP_IP 0x06 7139178Smsmith#endif 7264187Sjhb#ifndef LLCSAP_PROWAYNM 7339178Smsmith#define LLCSAP_PROWAYNM 0x0e 7443614Sdcs#endif 7564187Sjhb#ifndef LLCSAP_8021D 7664187Sjhb#define LLCSAP_8021D 0x42 7743614Sdcs#endif 7838465Smsmith#ifndef LLCSAP_RS511 7964187Sjhb#define LLCSAP_RS511 0x4e 8064187Sjhb#endif 8164187Sjhb#ifndef LLCSAP_ISO8208 8238465Smsmith#define LLCSAP_ISO8208 0x7e 8338465Smsmith#endif 8464187Sjhb#ifndef LLCSAP_PROWAY 8564187Sjhb#define LLCSAP_PROWAY 0x8e 8664187Sjhb#endif 8764187Sjhb#ifndef LLCSAP_SNAP 88134441Siedowse#define LLCSAP_SNAP 0xaa 89134441Siedowse#endif 90134441Siedowse#ifndef LLCSAP_IPX 9138465Smsmith#define LLCSAP_IPX 0xe0 9243614Sdcs#endif 9364187Sjhb#ifndef LLCSAP_NETBEUI 9464187Sjhb#define LLCSAP_NETBEUI 0xf0 9564187Sjhb#endif 9664187Sjhb#ifndef LLCSAP_ISONS 9743614Sdcs#define LLCSAP_ISONS 0xfe 9838465Smsmith#endif 9940834Smsmith