[Listener] Use ETHERTYPE_IP instead of ETH_P_IP
ETH_P_IP is Linux-specific.
This commit is contained in:
parent
3ac53e7b76
commit
5f72702b88
|
@ -15,6 +15,7 @@
|
|||
|
||||
#include <sys/ioctl.h>
|
||||
#include <net/if.h>
|
||||
#include <net/ethernet.h>
|
||||
|
||||
#ifdef USE_CONFIG_FILE
|
||||
# include <confuse.h>
|
||||
|
@ -826,7 +827,7 @@ void read_packet(u_char *args, const struct pcap_pkthdr *header,
|
|||
&packet[rtap_bytes + ieee80211_header_size + 6], 2) ;
|
||||
llc_packet_type = ntohs(llc_packet_type) ;
|
||||
|
||||
if (llc_packet_type != ETH_P_IP) // IP packet?
|
||||
if (llc_packet_type != ETHERTYPE_IP) // IP packet?
|
||||
goto not_explicit_packet ;
|
||||
|
||||
packet_ip_header = (struct iphdr *)
|
||||
|
|
Loading…
Reference in New Issue