summaryrefslogtreecommitdiff
path: root/security/nmap/files/patch-tcpip.cc
diff options
context:
space:
mode:
authorOliver Eikemeier <eik@FreeBSD.org>2004-06-17 11:56:03 +0000
committerOliver Eikemeier <eik@FreeBSD.org>2004-06-17 11:56:03 +0000
commit52667c5a80c7aee740eb8aeebd9112229ef7718f (patch)
tree35cc711391fd80f9394467db67e744333d70a33f /security/nmap/files/patch-tcpip.cc
parent- upgrade to 2.25 (diff)
- update to 3.51-TEST3
- fix bug when ranges cross interface boundaries [1] Notified by: Alex Povolotsky <tarkhil@webmail.sub.ru>, Mike Benjamin <mikeb@mikeb.org> [1]
Notes
Notes: svn path=/head/; revision=111665
Diffstat (limited to 'security/nmap/files/patch-tcpip.cc')
-rw-r--r--security/nmap/files/patch-tcpip.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/security/nmap/files/patch-tcpip.cc b/security/nmap/files/patch-tcpip.cc
new file mode 100644
index 000000000000..a7ebe21da047
--- /dev/null
+++ b/security/nmap/files/patch-tcpip.cc
@@ -0,0 +1,20 @@
+--- tcpip.cc.orig Thu Jun 17 13:36:02 2004
++++ tcpip.cc Thu Jun 17 13:38:54 2004
+@@ -1769,7 +1769,7 @@
+ #if TCPIP_DEBUGGING
+ printf("ifnet list length = %d\n",ifc.ifc_len);
+ printf("sa_len = %d\n",len);
+- hdump(buf, ifc.ifc_len);
++ hdump((unsigned char *)buf, ifc.ifc_len);
+ printf("ifr = %X\n",(unsigned int)(*(char **)&ifr));
+ printf("Size of struct ifreq: %d\n", sizeof(struct ifreq));
+ #endif
+@@ -2214,7 +2214,7 @@
+ error("sendto in %s: sendto(%d, packet, %d, 0, %s, %d) => %s",
+ functionname, sd, len, inet_ntoa(sin->sin_addr), tolen,
+ strerror(socket_errno()));
+- if (retries > 2 || socket_errno() == EPERM)
++ if (retries > 2 || socket_errno() == EPERM || socket_errno() == EACCES || socket_errno() == EADDRNOTAVAIL)
+ return -1;
+ sleeptime = 15 * (1 << (2 * retries));
+ error("Sleeping %d seconds then retrying", sleeptime);