From: Guy Harris Date: Mon, 14 Mar 2011 19:05:48 +0000 (-0700) Subject: Add a link-layer header type for STANAG 5066 D_PDUs. X-Git-Tag: libpcap-1.2.1~77 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/ebd7042eb38e7740167a165cc1dc548a354cc3f1 Add a link-layer header type for STANAG 5066 D_PDUs. --- diff --git a/pcap-common.c b/pcap-common.c index 49d4ecd4..a2625e3f 100644 --- a/pcap-common.c +++ b/pcap-common.c @@ -779,6 +779,12 @@ static const char rcsid[] _U_ = */ #define LINKTYPE_MUX27010 236 +/* + * STANAG 5066 D_PDUs. Requested by M. Baris Demiray + * . + */ +#define LINKTYPE_STANAG_5066_D_PDU 237 + static struct linktype_map { int dlt; int linktype; @@ -1145,6 +1151,9 @@ static struct linktype_map { /* Variant of 3GPP TS 27.010 */ { DLT_MUX27010, LINKTYPE_MUX27010 }, + /* STANAG 5066 D_PDUs */ + { DLT_STANAG_5066_D_PDU, LINKTYPE_STANAG_5066_D_PDU }, + { -1, -1 } }; diff --git a/pcap/bpf.h b/pcap/bpf.h index a60094bd..b0f31364 100644 --- a/pcap/bpf.h +++ b/pcap/bpf.h @@ -1014,6 +1014,13 @@ struct bpf_program { */ #define DLT_MUX27010 236 +/* + * STANAG 5066 D_PDUs. Requested by M. Baris Demiray + * . + */ +#define DLT_STANAG_5066_D_PDU 237 + + /* * DLT and savefile link type values are split into a class and * a member of that class. A class value of 0 indicates a regular