tcpdump mailing list archives
Re: DLT for IEEE802.15.4 no FCS frames
From: Guy Harris <guy () alum mit edu>
Date: Fri, 6 Aug 2010 14:46:27 -0700
On Aug 6, 2010, at 2:34 PM, Jon Smirl wrote:
Thanks for adding the DLT. Do I need this bit about LINKTYPE?
If you want to be able to read 802.15.4-with-no-FCS captures with applications that use libpcap to read capture files, yes.
diff --git a/pcap-linux.c b/pcap-linux.c index 70068b5..4d109ad 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -2637,6 +2637,13 @@ static void map_arphrd_to_dlt(pcap_t *handle, int arptype, int cooked_ok) handle->linktype = DLT_LINUX_LAPD; break; +#ifndef ARPHRD_IEEE802154 +#define ARPHRD_IEEE802154 804 +#endif + case ARPHRD_IEEE802154: + handle->linktype = DLT_IEEE802_15_4_NOFCS; + break; + #ifndef ARPHRD_NONE #define ARPHRD_NONE 0xFFFE #endif
I've checked that into the main and 1.1 branches and pushed them as well.- This is the tcpdump-workers list. Visit https://cod.sandelman.ca/ to unsubscribe.
Current thread:
- DLT for IEEE802.15.4 no FCS frames Jon Smirl (Aug 06)
- Re: DLT for IEEE802.15.4 no FCS frames Guy Harris (Aug 06)
- Re: DLT for IEEE802.15.4 no FCS frames Jon Smirl (Aug 06)
- Re: DLT for IEEE802.15.4 no FCS frames Jon Smirl (Aug 06)
- Re: DLT for IEEE802.15.4 no FCS frames Guy Harris (Aug 06)
- Re: DLT for IEEE802.15.4 no FCS frames Jon Smirl (Aug 06)
- Re: DLT for IEEE802.15.4 no FCS frames Guy Harris (Aug 06)
- Re: DLT for IEEE802.15.4 no FCS frames Jon Smirl (Aug 06)
- Re: DLT for IEEE802.15.4 no FCS frames Guy Harris (Aug 06)