From: Michael Richardson Date: Sat, 1 Sep 2018 02:31:38 +0000 (-0400) Subject: added DLT/LINKTYPE for openvizsla.org X-Git-Tag: libpcap-1.10-bp~858 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/a69f42f7873db778613bbd5c4238acc2d0c31c89 added DLT/LINKTYPE for openvizsla.org --- diff --git a/pcap-common.c b/pcap-common.c index b07c6028..12ed4dbb 100644 --- a/pcap-common.c +++ b/pcap-common.c @@ -1091,8 +1091,18 @@ */ #define LINKTYPE_SERCOS_MONITOR 277 +/* + * OpenVizsla http://openvizsla.org is open source USB analyzer hardware. + * It consists of FPGA with attached USB phy and FTDI chip for streaming + * the data to the host PC. + * + * Current OpenVizsla data encapsulation format is described here: + * https://github.com/matwey/libopenvizsla/wiki/OpenVizsla-protocol-description + * + */ +#define LINKTYPE_OPENVIZSLA 278 -#define LINKTYPE_MATCHING_MAX 277 /* highest value in the "matching" range */ +#define LINKTYPE_MATCHING_MAX 278 /* highest value in the "matching" range */ /* * The DLT_ and LINKTYPE_ values in the "matching" range should be the diff --git a/pcap/dlt.h b/pcap/dlt.h index 6e6345f9..4ed32b97 100644 --- a/pcap/dlt.h +++ b/pcap/dlt.h @@ -1377,6 +1377,17 @@ */ #define DLT_SERCOS_MONITOR 277 +/* + * OpenVizsla http://openvizsla.org is open source USB analyzer hardware. + * It consists of FPGA with attached USB phy and FTDI chip for streaming + * the data to the host PC. + * + * Current OpenVizsla data encapsulation format is described here: + * https://github.com/matwey/libopenvizsla/wiki/OpenVizsla-protocol-description + * + */ +#define DLT_OPENVIZSLA 278 + /* * In case the code that includes this file (directly or indirectly) * has also included OS files that happen to define DLT_MATCHING_MAX, @@ -1387,7 +1398,7 @@ #ifdef DLT_MATCHING_MAX #undef DLT_MATCHING_MAX #endif -#define DLT_MATCHING_MAX 277 /* highest value in the "matching" range */ +#define DLT_MATCHING_MAX 278 /* highest value in the "matching" range */ /* * DLT and savefile link type values are split into a class and