summaryrefslogtreecommitdiff
path: root/sys/net/bpf.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2016-11-16 13:47:28 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2016-11-16 13:47:28 +0000
commit2b623134b68b06bd788417283882c7768447a543 (patch)
tree349591281c26805ad694482b9af4c2c59b4057cf /sys/net/bpf.h
parent5be86442ff1d3095903f87f89ee1dc1917e5624b (diff)
Add new DLT_OPENFLOW link-type to allow using tcpdump to debug switch(4),
eg. tcpdump -y openflow -i switch0 Includes a minor bump for libpcap. Feedback and OK rzalamena@
Diffstat (limited to 'sys/net/bpf.h')
-rw-r--r--sys/net/bpf.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/bpf.h b/sys/net/bpf.h
index 8d193f0f8f5..41b90098f1f 100644
--- a/sys/net/bpf.h
+++ b/sys/net/bpf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.h,v 1.59 2016/10/30 17:46:34 phessler Exp $ */
+/* $OpenBSD: bpf.h,v 1.60 2016/11/16 13:47:27 reyk Exp $ */
/* $NetBSD: bpf.h,v 1.15 1996/12/13 07:57:33 mikel Exp $ */
/*
@@ -185,7 +185,9 @@ struct bpf_hdr {
#define DLT_IEEE802_11 105 /* IEEE 802.11 wireless */
#define DLT_PFLOG 117 /* Packet filter logging, by pcap people */
#define DLT_IEEE802_11_RADIO 127 /* IEEE 802.11 plus WLAN header */
+#define DLT_USER0 147 /* Reserved for private use */
#define DLT_MPLS 219 /* MPLS Provider Edge header */
+#define DLT_OPENFLOW DLT_USER0
/*
* The instruction encodings.