Use DLT_IEEE802_15_4_NOFCS for 802.15.4 interfaces.
Reviewed-By: Guy Harris <guy@alum.mit.edu>
This commit is contained in:
parent
6cb3ad9219
commit
41bfc71e21
|
@ -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
|
||||
/*
|
||||
|
|
Reference in New Issue