21 lines
522 B
Text
21 lines
522 B
Text
Index: examples/pcapscan.cc
|
|
--- examples/pcapscan.cc.orig
|
|
+++ examples/pcapscan.cc
|
|
@@ -63,14 +63,16 @@
|
|
|
|
// We use the BSD primitives throughout as they exist on both BSD and Linux.
|
|
#define __FAVOR_BSD
|
|
+#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <netinet/in_systm.h>
|
|
#include <netinet/ip.h>
|
|
#include <netinet/tcp.h>
|
|
#include <netinet/udp.h>
|
|
#include <netinet/ip_icmp.h>
|
|
-#include <net/ethernet.h>
|
|
#include <arpa/inet.h>
|
|
+#include <net/if_arp.h>
|
|
+#include <netinet/if_ether.h>
|
|
|
|
#include <pcap.h>
|
|
|