]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap-common.c
New DLT_IEEE802_15_4_NOFCS for 802.15.4 without FCS.
[libpcap] / pcap-common.c
index 979b5e364daca29a7dc3227d95f89bbe0aceef9f..5f6a9294749e6a29500f68e51661e08fe7146d54 100644 (file)
@@ -728,6 +728,13 @@ static const char rcsid[] _U_ =
 #define LINKTYPE_IPV4                          228
 #define LINKTYPE_IPV6                          229
 
+/*
+ * IEEE 802.15.4, exactly as it appears in the spec (no padding, no
+ * nothing), and with no FCS at the end of the frame; requested by
+ * Jon Smirl <[email protected]>.
+ */
+#define LINKTYPE_IEEE802_15_4_NOFCS            230
+
 
 static struct linktype_map {
        int     dlt;
@@ -976,8 +983,8 @@ static struct linktype_map {
         /* Juniper Voice ISM */
         { DLT_JUNIPER_ISM,      LINKTYPE_JUNIPER_ISM },
 
-       /* IEEE 802.15.4 exactly as it appears in the spec */
-        { DLT_IEEE802_15_4,    LINKTYPE_IEEE802_15_4 },
+       /* IEEE 802.15.4 exactly as it appears in the spec, with FCS */
+       { DLT_IEEE802_15_4,     LINKTYPE_IEEE802_15_4 },
 
        /* Various link-layer types for SITA */
        { DLT_SITA,             LINKTYPE_SITA },
@@ -1074,6 +1081,9 @@ static struct linktype_map {
        { DLT_IPV4,             LINKTYPE_IPV4 },
        { DLT_IPV6,             LINKTYPE_IPV6 },
 
+       /* IEEE 802.15.4 exactly as it appears in the spec, without FCS */
+       { DLT_IEEE802_15_4_NOFCS, LINKTYPE_IEEE802_15_4_NOFCS },
+
        { -1,                   -1 }
 };