From 5f72702b887f63fe93a154b4d79c9953552489e3 Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Fri, 24 Jun 2011 16:10:09 +0200 Subject: [PATCH] [Listener] Use ETHERTYPE_IP instead of ETH_P_IP ETH_P_IP is Linux-specific. --- owlps-listener/owlps-listenerd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/owlps-listener/owlps-listenerd.c b/owlps-listener/owlps-listenerd.c index 7c77c64..0e757b4 100644 --- a/owlps-listener/owlps-listenerd.c +++ b/owlps-listener/owlps-listenerd.c @@ -15,6 +15,7 @@ #include #include +#include #ifdef USE_CONFIG_FILE # include @@ -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 *)