11077d0bdSPeter Avalos /* 21077d0bdSPeter Avalos * Copyright (c) 1993, 1994, 1997 31077d0bdSPeter Avalos * The Regents of the University of California. All rights reserved. 41077d0bdSPeter Avalos * 51077d0bdSPeter Avalos * Redistribution and use in source and binary forms, with or without 61077d0bdSPeter Avalos * modification, are permitted provided that: (1) source code distributions 71077d0bdSPeter Avalos * retain the above copyright notice and this paragraph in its entirety, (2) 81077d0bdSPeter Avalos * distributions including binary code include the above copyright notice and 91077d0bdSPeter Avalos * this paragraph in its entirety in the documentation or other materials 101077d0bdSPeter Avalos * provided with the distribution, and (3) all advertising materials mentioning 111077d0bdSPeter Avalos * features or use of this software display the following acknowledgement: 121077d0bdSPeter Avalos * ``This product includes software developed by the University of California, 131077d0bdSPeter Avalos * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 141077d0bdSPeter Avalos * the University nor the names of its contributors may be used to endorse 151077d0bdSPeter Avalos * or promote products derived from this software without specific prior 161077d0bdSPeter Avalos * written permission. 171077d0bdSPeter Avalos * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 181077d0bdSPeter Avalos * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 191077d0bdSPeter Avalos * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 201077d0bdSPeter Avalos */ 211077d0bdSPeter Avalos 221077d0bdSPeter Avalos /* 23*97a9217aSAntonio Huete Jimenez * Definitions for information in the LLC header. 24*97a9217aSAntonio Huete Jimenez */ 25*97a9217aSAntonio Huete Jimenez 26*97a9217aSAntonio Huete Jimenez #define LLC_U_FMT 3 27*97a9217aSAntonio Huete Jimenez #define LLC_GSAP 1 28*97a9217aSAntonio Huete Jimenez #define LLC_IG 1 /* Individual / Group */ 29*97a9217aSAntonio Huete Jimenez #define LLC_S_FMT 1 30*97a9217aSAntonio Huete Jimenez 31*97a9217aSAntonio Huete Jimenez #define LLC_U_POLL 0x10 32*97a9217aSAntonio Huete Jimenez #define LLC_IS_POLL 0x0100 33*97a9217aSAntonio Huete Jimenez #define LLC_XID_FI 0x81 34*97a9217aSAntonio Huete Jimenez 35*97a9217aSAntonio Huete Jimenez #define LLC_U_CMD_MASK 0xef 36*97a9217aSAntonio Huete Jimenez #define LLC_UI 0x03 37*97a9217aSAntonio Huete Jimenez #define LLC_UA 0x63 38*97a9217aSAntonio Huete Jimenez #define LLC_DISC 0x43 39*97a9217aSAntonio Huete Jimenez #define LLC_DM 0x0f 40*97a9217aSAntonio Huete Jimenez #define LLC_SABME 0x6f 41*97a9217aSAntonio Huete Jimenez #define LLC_TEST 0xe3 42*97a9217aSAntonio Huete Jimenez #define LLC_XID 0xaf 43*97a9217aSAntonio Huete Jimenez #define LLC_FRMR 0x87 44*97a9217aSAntonio Huete Jimenez 45*97a9217aSAntonio Huete Jimenez #define LLC_S_CMD_MASK 0x0f 46*97a9217aSAntonio Huete Jimenez #define LLC_RR 0x0001 47*97a9217aSAntonio Huete Jimenez #define LLC_RNR 0x0005 48*97a9217aSAntonio Huete Jimenez #define LLC_REJ 0x0009 49*97a9217aSAntonio Huete Jimenez 50*97a9217aSAntonio Huete Jimenez #define LLC_IS_NR(is) (((is) >> 9) & 0x7f) 51*97a9217aSAntonio Huete Jimenez #define LLC_I_NS(is) (((is) >> 1) & 0x7f) 52*97a9217aSAntonio Huete Jimenez 53*97a9217aSAntonio Huete Jimenez /* 541077d0bdSPeter Avalos * 802.2 LLC SAP values. 551077d0bdSPeter Avalos */ 561077d0bdSPeter Avalos 571077d0bdSPeter Avalos #ifndef LLCSAP_NULL 581077d0bdSPeter Avalos #define LLCSAP_NULL 0x00 591077d0bdSPeter Avalos #endif 601077d0bdSPeter Avalos #ifndef LLCSAP_GLOBAL 611077d0bdSPeter Avalos #define LLCSAP_GLOBAL 0xff 621077d0bdSPeter Avalos #endif 63*97a9217aSAntonio Huete Jimenez #ifndef LLCSAP_8021B_I 641077d0bdSPeter Avalos #define LLCSAP_8021B_I 0x02 651077d0bdSPeter Avalos #endif 66*97a9217aSAntonio Huete Jimenez #ifndef LLCSAP_8021B_G 671077d0bdSPeter Avalos #define LLCSAP_8021B_G 0x03 681077d0bdSPeter Avalos #endif 691077d0bdSPeter Avalos #ifndef LLCSAP_IP 701077d0bdSPeter Avalos #define LLCSAP_IP 0x06 711077d0bdSPeter Avalos #endif 721077d0bdSPeter Avalos #ifndef LLCSAP_PROWAYNM 731077d0bdSPeter Avalos #define LLCSAP_PROWAYNM 0x0e 741077d0bdSPeter Avalos #endif 751077d0bdSPeter Avalos #ifndef LLCSAP_8021D 761077d0bdSPeter Avalos #define LLCSAP_8021D 0x42 771077d0bdSPeter Avalos #endif 781077d0bdSPeter Avalos #ifndef LLCSAP_RS511 791077d0bdSPeter Avalos #define LLCSAP_RS511 0x4e 801077d0bdSPeter Avalos #endif 811077d0bdSPeter Avalos #ifndef LLCSAP_ISO8208 821077d0bdSPeter Avalos #define LLCSAP_ISO8208 0x7e 831077d0bdSPeter Avalos #endif 841077d0bdSPeter Avalos #ifndef LLCSAP_PROWAY 851077d0bdSPeter Avalos #define LLCSAP_PROWAY 0x8e 861077d0bdSPeter Avalos #endif 871077d0bdSPeter Avalos #ifndef LLCSAP_SNAP 881077d0bdSPeter Avalos #define LLCSAP_SNAP 0xaa 891077d0bdSPeter Avalos #endif 901077d0bdSPeter Avalos #ifndef LLCSAP_IPX 911077d0bdSPeter Avalos #define LLCSAP_IPX 0xe0 921077d0bdSPeter Avalos #endif 931077d0bdSPeter Avalos #ifndef LLCSAP_NETBEUI 941077d0bdSPeter Avalos #define LLCSAP_NETBEUI 0xf0 951077d0bdSPeter Avalos #endif 961077d0bdSPeter Avalos #ifndef LLCSAP_ISONS 971077d0bdSPeter Avalos #define LLCSAP_ISONS 0xfe 981077d0bdSPeter Avalos #endif 99