Wireshark-dev: [Wireshark-dev] [patch] fix omission in wcap.c
From: Jim Paris <jim@xxxxxxxx>
Date: Thu, 12 Jul 2007 14:36:33 -0400
Hi,

The encap_table_base in wcap.c is missing an entry.
This causes e.g. "dumpcap -i usb3 -L" to output:

  Data link types (use option -y to set):
    USB_LINUX
   (MPEG)

-jim

diff -urN --exclude=debian wireshark-0.99.6pre1.orig/wiretap/wtap.c wireshark-0.99.6pre1/wiretap/wtap.c
--- wireshark-0.99.6pre1.orig/wiretap/wtap.c	2007-06-22 13:34:02.000000000 -0400
+++ wireshark-0.99.6pre1/wiretap/wtap.c	2007-07-12 14:03:41.000000000 -0400
@@ -375,6 +375,9 @@
 	/* WTAP_ENCAP_NETTL_RAW_TELNET */
 	{ "Raw telnet with nettl headers", "raw-telnet-nettl" },
 
+	/* WTAP_ENCAP_USB_LINUX */
+	{ "USB packets with Linux header", "usb-linux" },
+
 	/* WTAP_ENCAP_MPEG */
 	{ "MPEG", "mpeg" },