aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-linux.c
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@gmail.com>2010-08-06 14:43:05 -0700
committerGuy Harris <guy@alum.mit.edu>2010-08-06 14:43:05 -0700
commit41bfc71e214efb8988ea2a296f9208ac74867d87 (patch)
treed271851184f13612850b35b94304ed723aa9a00b /pcap-linux.c
parent6cb3ad9219fec9c8d3c59d294c3e89c54602e4cd (diff)
Use DLT_IEEE802_15_4_NOFCS for 802.15.4 interfaces.
Reviewed-By: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'pcap-linux.c')
-rw-r--r--pcap-linux.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/pcap-linux.c b/pcap-linux.c
index 70068b5..b9381e8 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -2301,6 +2301,13 @@ 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
/*