From: Guy Harris Date: Fri, 21 Feb 2014 20:39:14 +0000 (-0800) Subject: Add a link-layer header type for the PROFIBUS data link layer. X-Git-Tag: libpcap-1.6.0-bp~47 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/992bc2bc45e548bb6ce6b4332a4b6c4a1539daf5?hp=2e6705b7b7fb136baff1dc67bfb18c567fc2011c Add a link-layer header type for the PROFIBUS data link layer. --- diff --git a/pcap-common.c b/pcap-common.c index 2b415dbc..5fb760a3 100644 --- a/pcap-common.c +++ b/pcap-common.c @@ -954,7 +954,12 @@ */ #define LINKTYPE_BLUETOOTH_LE_LL_WITH_PHDR 256 -#define LINKTYPE_MATCHING_MAX 256 /* highest value in the "matching" range */ +/* + * PROFIBUS data link layer. + */ +#define LINKTYPE_PROFIBUS_DL 257 + +#define LINKTYPE_MATCHING_MAX 257 /* highest value in the "matching" range */ static struct linktype_map { int dlt; diff --git a/pcap/bpf.h b/pcap/bpf.h index d63057ac..7017d137 100644 --- a/pcap/bpf.h +++ b/pcap/bpf.h @@ -1243,7 +1243,12 @@ struct bpf_program { */ #define DLT_BLUETOOTH_LE_LL_WITH_PHDR 256 -#define DLT_MATCHING_MAX 256 /* highest value in the "matching" range */ +/* + * PROFIBUS data link layer. + */ +#define DLT_PROFIBUS_DL 257 + +#define DLT_MATCHING_MAX 257 /* highest value in the "matching" range */ /* * DLT and savefile link type values are split into a class and