ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-dev: Re: [Wireshark-dev] [patch] fix omission in wcap.c

From: Jaap Keuter <jaap.keuter@xxxxxxxxx>
Date: Thu, 12 Jul 2007 21:57:56 +0200
Hi,

Checked in.

Thanx,
Jaap

Jim Paris wrote:
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" },