]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add a link-layer header type for STANAG 5066 D_PDUs.
authorGuy Harris <[email protected]>
Mon, 14 Mar 2011 19:05:48 +0000 (12:05 -0700)
committerGuy Harris <[email protected]>
Mon, 14 Mar 2011 19:05:48 +0000 (12:05 -0700)
pcap-common.c
pcap/bpf.h

index 49d4ecd4c736a1023bdd59a61d51cc8e63e293c0..a2625e3f98b3d1fd5ec3708ee4be2705baf74a29 100644 (file)
@@ -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 }
 };
 
index a60094bd9e5e5126a5a455ad2360d3cedeaaf575..b0f31364615f1effdd7169934ef6ebbb92646c0c 100644 (file)
@@ -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