aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/arpscan/files/patch-arpscan.c
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/arpscan/files/patch-arpscan.c')
-rw-r--r--net-mgmt/arpscan/files/patch-arpscan.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/net-mgmt/arpscan/files/patch-arpscan.c b/net-mgmt/arpscan/files/patch-arpscan.c
index c06e55310731..ee400d55ef44 100644
--- a/net-mgmt/arpscan/files/patch-arpscan.c
+++ b/net-mgmt/arpscan/files/patch-arpscan.c
@@ -1,6 +1,6 @@
---- arpscan.c.orig Mon Aug 18 22:54:25 2003
-+++ arpscan.c Fri Sep 22 16:55:48 2006
-@@ -8,7 +8,9 @@
+--- arpscan.c.orig Wed Aug 2 08:31:32 2006
++++ arpscan.c Sun Sep 24 04:31:06 2006
+@@ -9,7 +9,9 @@
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
@@ -9,10 +9,10 @@
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
-
-@@ -17,6 +19,13 @@
-
- #define PCAP_TIMEO 20
+ #include <fcntl.h>
+@@ -22,6 +24,13 @@
+ #include <dnet.h>
+ #endif /* DUMBNET */
+#ifdef __FreeBSD__
+# include <sys/param.h>
@@ -21,10 +21,10 @@
+# endif
+#endif
+
- struct ether_arp {
- struct arp_hdr ea_hdr;
- u_int8_t arp_sha[ETH_ADDR_LEN];
-@@ -36,7 +45,7 @@
+ /* A concatenation of dnet's arp_hdr and arp_ethip. */
+ struct ether_arp {
+ struct arp_hdr arp_hdr;
+@@ -45,7 +54,7 @@
fprintf(stderr, "\teg)\n");
fprintf(stderr, "\t %s 172.16.1.11\n", __progname);
fprintf(stderr, "\t %s 192.168.1.100-192.168.1.200\n", __progname);