summaryrefslogtreecommitdiffstats
path: root/src/vppinfra/pcap.h
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2019-01-09 10:22:24 -0500
committerDave Barach <dave@barachs.net>2019-01-09 10:23:16 -0500
commit7b01e9e897c8f780e79ca6e64c72d700bd27f86e (patch)
treeec865d830713d28c2f9350e37afc21351dbe5663 /src/vppinfra/pcap.h
parentf0769631f4ec8aadbaa8f104ff6cae352f08a437 (diff)
Use the official libpcap file type
Change-Id: Ia34a4278eedc8cf450688b1fa0291e1f976868d3 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vppinfra/pcap.h')
-rw-r--r--src/vppinfra/pcap.h21
1 files changed, 8 insertions, 13 deletions
diff --git a/src/vppinfra/pcap.h b/src/vppinfra/pcap.h
index 5889a793401..893c67b7580 100644
--- a/src/vppinfra/pcap.h
+++ b/src/vppinfra/pcap.h
@@ -49,7 +49,7 @@
#include <vppinfra/lock.h>
/**
- * @brief Packet types supported by PCAP
+ * @brief Known libpcap encap types
*
* These codes end up in the pcap file header.
* If you decide to build a wireshark dissector,
@@ -58,22 +58,16 @@
*
* For example:
*
- * { 160, WTAP_ENCAP_USER13 },
+ * { 280, WTAP_ENCAP_VPP },
*
- * A file with (vpp) packet type PCAP_PACKET_TYPE_user13
- * aka 160, will need a top-level dissector registered to
- * deal with WTAP_ENCAP_USER13 [=58].
+ * A file with the officially-allocated vpp packet type PCAP_PACKET_TYPE_vpp
+ * aka 280, will need a top-level dissector registered to
+ * deal with WTAP_ENCAP_VPP [=206].
*
* Something like so:
*
- * dissector_add_uint("wtap_encap", WTAP_ENCAP_USER13, vpp_dissector_handle);
+ * dissector_add_uint("wtap_encap", WTAP_ENCAP_VPP, vpp_dissector_handle);
*
- * null 0
- * ethernet 1
- * ppp 9
- * ip 12
- * hdlc 104
- * user0 147 ... user15 162
*/
#define foreach_vnet_pcap_packet_type \
_ (null, 0) \
@@ -96,7 +90,8 @@
_ (user12, 159) \
_ (user13, 160) \
_ (user14, 161) \
- _ (user15, 162)
+ _ (user15, 162) \
+ _ (vpp, 280) \
typedef enum
{