]> The Tcpdump Group git mirrors - libpcap/commitdiff
Add a linktype for DECT packets, requested by Matthias Wenzel.
authorGuy Harris <[email protected]>
Sun, 19 Apr 2009 22:52:03 +0000 (15:52 -0700)
committerGuy Harris <[email protected]>
Sun, 19 Apr 2009 22:52:03 +0000 (15:52 -0700)
pcap/bpf.h
savefile.c

index e1194bb3584c1bb0214405c2ddd739ef3166bae7..b0700f0bfa67d825c2a64422d796391b697c1a9d 100644 (file)
@@ -850,6 +850,12 @@ struct bpf_version {
  */
 #define DLT_USB_LINUX_MMAPPED  220
 
+/*
+ * DECT packets, with a pseudo-header; requested by
+ * Matthias Wenzel <[email protected]>.
+ */
+#define DLT_DECT               221
+
 
 /*
  * DLT and savefile link type values are split into a class and
index d51097eb4166a8ac46a8810f570e3353e6c2966d..c65858cda77cd8e289f5e264bf8f44a14d4f1621 100644 (file)
@@ -676,6 +676,12 @@ static const char rcsid[] _U_ =
  */
 #define LINKTYPE_USB_LINUX_MMAPPED             220
 
+/*
+ * DECT packets, with a pseudo-header; requested by
+ * Matthias Wenzel <[email protected]>.
+ */
+#define LINKTYPE_DECT                          221
+
 
 static struct linktype_map {
        int     dlt;
@@ -997,6 +1003,9 @@ static struct linktype_map {
        /* USB with padded Linux header */
        { DLT_USB_LINUX_MMAPPED, LINKTYPE_USB_LINUX_MMAPPED },
 
+       /* DECT packets with a pseudo-header */
+       { DLT_DECT,             LINKTYPE_DECT },
+
        { -1,                   -1 }
 };