dect
/
libpcap
Archived
13
0
Fork 0

Fix previous checkin.

This commit is contained in:
Guy Harris 2010-08-06 14:58:16 -07:00
parent f41d444406
commit 3c13ac2cc3
1 changed files with 7 additions and 8 deletions

View File

@ -2301,14 +2301,6 @@ 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
/*
* Map the PACKET_ value to a LINUX_SLL_ value; we
@ -2655,6 +2647,13 @@ static void map_arphrd_to_dlt(pcap_t *handle, int arptype, int cooked_ok)
handle->linktype = DLT_RAW;
break;
#ifndef ARPHRD_IEEE802154
#define ARPHRD_IEEE802154 804
#endif
case ARPHRD_IEEE802154:
handle->linktype = DLT_IEEE802_15_4_NOFCS;
break;
default:
handle->linktype = -1;
break;