From 52667c5a80c7aee740eb8aeebd9112229ef7718f Mon Sep 17 00:00:00 2001 From: Oliver Eikemeier Date: Thu, 17 Jun 2004 11:56:03 +0000 Subject: - update to 3.51-TEST3 - fix bug when ranges cross interface boundaries [1] Notified by: Alex Povolotsky , Mike Benjamin [1] --- security/nmap/files/patch-tcpip.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 security/nmap/files/patch-tcpip.cc (limited to 'security/nmap/files/patch-tcpip.cc') 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); -- cgit v1.2.3