Skip to content
Newer
Older
100644 121 lines (118 sloc) 3.41 KB
b11ddf8 Initial revision
mcr authored Oct 7, 1999
1 /*
2 * Copyright (c) 1993, 1994, 1996
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
6ef0c9a @yuguy Add definitions of Ethernet types from
yuguy authored Sep 23, 2000
22 /*
23 * Ethernet types.
24 *
25 * We wrap the declarations with #ifdef, so that if a file includes
26 * <netinet/if_ether.h>, which may declare some of these, we don't
27 * get a bunch of complaints from the C compiler about redefinitions
28 * of these values.
29 *
30 * We declare all of them here so that no file has to include
31 * <netinet/if_ether.h> if all it needs are ETHERTYPE_ values.
32 */
b11ddf8 Initial revision
mcr authored Oct 7, 1999
33
6ef0c9a @yuguy Add definitions of Ethernet types from
yuguy authored Sep 23, 2000
34 #ifndef ETHERTYPE_PUP
35 #define ETHERTYPE_PUP 0x0200 /* PUP protocol */
36 #endif
37 #ifndef ETHERTYPE_IP
38 #define ETHERTYPE_IP 0x0800 /* IP protocol */
39 #endif
40 #ifndef ETHERTYPE_ARP
41 #define ETHERTYPE_ARP 0x0806 /* Addr. resolution protocol */
42 #endif
43 #ifndef ETHERTYPE_REVARP
44 #define ETHERTYPE_REVARP 0x8035 /* reverse Addr. resolution protocol */
45 #endif
b11ddf8 Initial revision
mcr authored Oct 7, 1999
46 #ifndef ETHERTYPE_NS
47 #define ETHERTYPE_NS 0x0600
48 #endif
49 #ifndef ETHERTYPE_SPRITE
50 #define ETHERTYPE_SPRITE 0x0500
51 #endif
52 #ifndef ETHERTYPE_TRAIL
53 #define ETHERTYPE_TRAIL 0x1000
54 #endif
55 #ifndef ETHERTYPE_MOPDL
56 #define ETHERTYPE_MOPDL 0x6001
57 #endif
58 #ifndef ETHERTYPE_MOPRC
59 #define ETHERTYPE_MOPRC 0x6002
60 #endif
61 #ifndef ETHERTYPE_DN
62 #define ETHERTYPE_DN 0x6003
63 #endif
64 #ifndef ETHERTYPE_LAT
65 #define ETHERTYPE_LAT 0x6004
66 #endif
67 #ifndef ETHERTYPE_SCA
68 #define ETHERTYPE_SCA 0x6007
69 #endif
70 #ifndef ETHERTYPE_REVARP
71 #define ETHERTYPE_REVARP 0x8035
72 #endif
73 #ifndef ETHERTYPE_LANBRIDGE
74 #define ETHERTYPE_LANBRIDGE 0x8038
75 #endif
76 #ifndef ETHERTYPE_DECDNS
77 #define ETHERTYPE_DECDNS 0x803c
78 #endif
79 #ifndef ETHERTYPE_DECDTS
80 #define ETHERTYPE_DECDTS 0x803e
81 #endif
82 #ifndef ETHERTYPE_VEXP
83 #define ETHERTYPE_VEXP 0x805b
84 #endif
85 #ifndef ETHERTYPE_VPROD
86 #define ETHERTYPE_VPROD 0x805c
87 #endif
88 #ifndef ETHERTYPE_ATALK
89 #define ETHERTYPE_ATALK 0x809b
90 #endif
91 #ifndef ETHERTYPE_AARP
92 #define ETHERTYPE_AARP 0x80f3
93 #endif
98a503e @yuguy Improved VLAN support, from Peter Jeremy - "vlan" filtering keyword,
yuguy authored Oct 22, 2000
94 #ifndef ETHERTYPE_8021Q
95 #define ETHERTYPE_8021Q 0x8100
96 #endif
79762d3 @yuguy I've seen captures with all four different flavors of IPX frames on
yuguy authored Jan 14, 2001
97 #ifndef ETHERTYPE_IPX
98 #define ETHERTYPE_IPX 0x8137
99 #endif
100 #ifndef ETHERTYPE_IPV6
101 #define ETHERTYPE_IPV6 0x86dd
102 #endif
405ab1a add baseline support for MPLS protocol and per-label filtering
hannes authored Jun 16, 2004
103 #ifndef ETHERTYPE_MPLS
104 #define ETHERTYPE_MPLS 0x8847
105 #endif
106 #ifndef ETHERTYPE_MPLS_MULTI
107 #define ETHERTYPE_MPLS_MULTI 0x8848
108 #endif
7fb15ab @yuguy Add "pppoed" and "pppoes" keywords, for PPPoE Discovery and Session
yuguy authored Sep 5, 2005
109 #ifndef ETHERTYPE_PPPOED
110 #define ETHERTYPE_PPPOED 0x8863
111 #endif
112 #ifndef ETHERTYPE_PPPOES
113 #define ETHERTYPE_PPPOES 0x8864
114 #endif
b11ddf8 Initial revision
mcr authored Oct 7, 1999
115 #ifndef ETHERTYPE_LOOPBACK
116 #define ETHERTYPE_LOOPBACK 0x9000
117 #endif
b107f95 @guyharris When checking for VLAN tags, check for QinQ tags as well.
guyharris authored Nov 19, 2011
118 #ifndef ETHERTYPE_8021QINQ
119 #define ETHERTYPE_8021QINQ 0x9100
120 #endif
Something went wrong with that request. Please try again.