source: rtems-libbsd/freebsd/contrib/libpcap/llc.h @ 97c5f8e8

55-freebsd-126-freebsd-12
Last change on this file since 97c5f8e8 was 97c5f8e8, checked in by Sebastian Huber <sebastian.huber@…>, on 10/09/17 at 07:59:36

Update libpcap to FreeBSD head 2017-04-04

Update libpcap from Git mirror commit
99a648a912e81e29d9c4c159cbbe263462f2d719 to
642b174daddbd0efd9bb5f242c43f4ab4db6869f.

  • Property mode set to 100644
File size: 2.6 KB
Line 
1/*
2 * Copyright (c) 1993, 1994, 1997
3 *      The Regents of the University of California.  All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that: (1) source code distributions
7 * retain the above copyright notice and this paragraph in its entirety, (2)
8 * distributions including binary code include the above copyright notice and
9 * this paragraph in its entirety in the documentation or other materials
10 * provided with the distribution, and (3) all advertising materials mentioning
11 * features or use of this software display the following acknowledgement:
12 * ``This product includes software developed by the University of California,
13 * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
14 * the University nor the names of its contributors may be used to endorse
15 * or promote products derived from this software without specific prior
16 * written permission.
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 */
21
22/*
23 * Definitions for information in the LLC header.
24 */
25
26#define LLC_U_FMT       3
27#define LLC_GSAP        1
28#define LLC_IG          1 /* Individual / Group */
29#define LLC_S_FMT       1
30
31#define LLC_U_POLL      0x10
32#define LLC_IS_POLL     0x0100
33#define LLC_XID_FI      0x81
34
35#define LLC_U_CMD_MASK  0xef
36#define LLC_UI          0x03
37#define LLC_UA          0x63
38#define LLC_DISC        0x43
39#define LLC_DM          0x0f
40#define LLC_SABME       0x6f
41#define LLC_TEST        0xe3
42#define LLC_XID         0xaf
43#define LLC_FRMR        0x87
44
45#define LLC_S_CMD_MASK  0x0f
46#define LLC_RR          0x0001
47#define LLC_RNR         0x0005
48#define LLC_REJ         0x0009
49
50#define LLC_IS_NR(is)   (((is) >> 9) & 0x7f)
51#define LLC_I_NS(is)    (((is) >> 1) & 0x7f)
52
53/*
54 * 802.2 LLC SAP values.
55 */
56
57#ifndef LLCSAP_NULL
58#define LLCSAP_NULL             0x00
59#endif
60#ifndef LLCSAP_GLOBAL
61#define LLCSAP_GLOBAL           0xff
62#endif
63#ifndef LLCSAP_8021B_I
64#define LLCSAP_8021B_I          0x02
65#endif
66#ifndef LLCSAP_8021B_G
67#define LLCSAP_8021B_G          0x03
68#endif
69#ifndef LLCSAP_IP
70#define LLCSAP_IP               0x06
71#endif
72#ifndef LLCSAP_PROWAYNM
73#define LLCSAP_PROWAYNM         0x0e
74#endif
75#ifndef LLCSAP_8021D
76#define LLCSAP_8021D            0x42
77#endif
78#ifndef LLCSAP_RS511
79#define LLCSAP_RS511            0x4e
80#endif
81#ifndef LLCSAP_ISO8208
82#define LLCSAP_ISO8208          0x7e
83#endif
84#ifndef LLCSAP_PROWAY
85#define LLCSAP_PROWAY           0x8e
86#endif
87#ifndef LLCSAP_SNAP
88#define LLCSAP_SNAP             0xaa
89#endif
90#ifndef LLCSAP_IPX
91#define LLCSAP_IPX              0xe0
92#endif
93#ifndef LLCSAP_NETBEUI
94#define LLCSAP_NETBEUI          0xf0
95#endif
96#ifndef LLCSAP_ISONS
97#define LLCSAP_ISONS            0xfe
98#endif
Note: See TracBrowser for help on using the repository browser.