From 41415aa44471ec3fbf6a9a7f0b54db4bb9ea66e5 Mon Sep 17 00:00:00 2001 From: Stefan Hajnoczi Date: Thu, 13 Jul 2017 13:33:30 +0100 Subject: vsock: add WTAP_ENCAP_VSOCK constant A linktype was recently assigned to Linux vsock in libpcap commit cfdded36ddcf5d01e1ed9f5d4db596b744a6cda5 ("added DLT_VSOCK for http://qemu-project.org/Features/VirtioVsock"). The Wireshark vsock dissector can now be automatically applied when wtap_encap matches the new WTAP_ENCAP_VSOCK constant. This patch makes Wireshark dissect vsock packet captures without manually specifying the dissector. Change-Id: If252071499a61554f624c9ce0ce45a0ccfa88d7a Signed-off-by: Stefan Hajnoczi Reviewed-on: https://code.wireshark.org/review/22611 Reviewed-by: Michael Mann Petri-Dish: Michael Mann Tested-by: Petri Dish Buildbot Reviewed-by: Alexis La Goutte --- wiretap/wtap.h | 1 + 1 file changed, 1 insertion(+) (limited to 'wiretap/wtap.h') diff --git a/wiretap/wtap.h b/wiretap/wtap.h index c05936fbec..7c895b5af3 100644 --- a/wiretap/wtap.h +++ b/wiretap/wtap.h @@ -272,6 +272,7 @@ extern "C" { #define WTAP_ENCAP_USB_DARWIN 182 #define WTAP_ENCAP_LORATAP 183 #define WTAP_ENCAP_3MB_ETHERNET 184 +#define WTAP_ENCAP_VSOCK 185 /* After adding new item here, please also add new item to encap_table_base array */ #define WTAP_NUM_ENCAP_TYPES wtap_get_num_encap_types() -- cgit v1.2.3