From 41bfc71e214efb8988ea2a296f9208ac74867d87 Mon Sep 17 00:00:00 2001 From: Jon Smirl Date: Fri, 6 Aug 2010 14:43:05 -0700 Subject: Use DLT_IEEE802_15_4_NOFCS for 802.15.4 interfaces. Reviewed-By: Guy Harris --- pcap-linux.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pcap-linux.c') 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 /* -- cgit v1.2.3