]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix previous checkin.
authorGuy Harris <[email protected]>
Fri, 6 Aug 2010 21:58:16 +0000 (14:58 -0700)
committerGuy Harris <[email protected]>
Fri, 6 Aug 2010 21:58:16 +0000 (14:58 -0700)
pcap-linux.c

index b9381e827165802e7b2ac7d5b60f1b5952c47140..81bc8d35141ce54ce280a13f74e0a2c29a5c4107 100644 (file)
@@ -2301,14 +2301,6 @@ pcap_setdirection_linux(pcap_t *handle, pcap_direction_t d)
        return -1;
 }
 
-#ifndef ARPHRD_IEEE802154
-#define ARPHRD_IEEE802154      804
-#endif
-       case ARPHRD_IEEE802154:
-               handle->linktype =  DLT_IEEE802_15_4_NOFCS;
-               break;
-
-
 #ifdef HAVE_PF_PACKET_SOCKETS
 /*
  * Map the PACKET_ value to a LINUX_SLL_ value; we
@@ -2655,6 +2647,13 @@ static void map_arphrd_to_dlt(pcap_t *handle, int arptype, int cooked_ok)
                handle->linktype = DLT_RAW;
                break;
 
+#ifndef ARPHRD_IEEE802154
+#define ARPHRD_IEEE802154      804
+#endif
+       case ARPHRD_IEEE802154:
+               handle->linktype =  DLT_IEEE802_15_4_NOFCS;
+               break;
+
        default:
                handle->linktype = -1;
                break;