dect
/
libpcap
Archived
13
0
Fork 0

Use DLT_IEEE802_15_4_NOFCS for 802.15.4 interfaces.

Reviewed-By: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
Jon Smirl 2010-08-06 14:43:05 -07:00 committed by Guy Harris
parent 6cb3ad9219
commit 41bfc71e21
1 changed files with 7 additions and 0 deletions

View File

@ -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
/*