summaryrefslogtreecommitdiff
path: root/lib/libpcap/ethertype.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@cvs.openbsd.org>2008-06-11 15:02:22 +0000
committerDarren Tucker <dtucker@cvs.openbsd.org>2008-06-11 15:02:22 +0000
commitcbe6215ebf7e4edd3afcdb290dd13cb107d71e0c (patch)
treec7715d6fbe2fe71fcaa28bd2f4bf88a5064597c8 /lib/libpcap/ethertype.h
parent855ad27fad0df12cf14b93cf23b8b9a05910bebb (diff)
Import vlan support from upstream libpcap. This allows, eg, "tcpdump vla 3"
to work on a vlan parent interface. ok mcbride@, "commit it" deraadt@
Diffstat (limited to 'lib/libpcap/ethertype.h')
-rw-r--r--lib/libpcap/ethertype.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libpcap/ethertype.h b/lib/libpcap/ethertype.h
index 898543d4519..ecd18b5a50f 100644
--- a/lib/libpcap/ethertype.h
+++ b/lib/libpcap/ethertype.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ethertype.h,v 1.6 2000/04/26 21:25:52 jakob Exp $ */
+/* $OpenBSD: ethertype.h,v 1.7 2008/06/11 15:02:21 dtucker Exp $ */
/* $NetBSD: ethertype.h,v 1.2 1995/03/06 11:38:17 mycroft Exp $ */
/*
@@ -21,7 +21,7 @@
* WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * @(#) $Header: /cvs/OpenBSD/src/lib/libpcap/ethertype.h,v 1.6 2000/04/26 21:25:52 jakob Exp $ (LBL)
+ * @(#) $Header: /cvs/OpenBSD/src/lib/libpcap/ethertype.h,v 1.7 2008/06/11 15:02:21 dtucker Exp $ (LBL)
*/
/* Types missing from some systems */
@@ -74,6 +74,9 @@
#ifndef ETHERTYPE_AARP
#define ETHERTYPE_AARP 0x80f3
#endif
+#ifndef ETHERTYPE_8021Q
+#define ETHERTYPE_8021Q 0x8100
+#endif
#ifndef ETHERTYPE_IPV6
#define ETHERTYPE_IPV6 0x80f3
#endif