1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-22 07:29:01 +00:00

Cleanup and introduction of a special section for changes to libdnet

which have been merged to the upstream libdnet repository and thus
do not have to be re-applied when the libdnet version included with
Nmap is updated in the future.
This commit is contained in:
daniel
2009-07-03 18:07:20 +00:00
parent 2ed58055ee
commit 1cfb3558c9

View File

@@ -3,8 +3,6 @@ $Id$
This is Dug Song's excellent Libdnet networking library version 1.12. This is Dug Song's excellent Libdnet networking library version 1.12.
It has been stripped down for inclusion within Nmap and modified as follows: It has been stripped down for inclusion within Nmap and modified as follows:
o Fixed a case where an open file may not be closed in intf_loop()
o Removed the following directories: o Removed the following directories:
python, test, man, trunk python, test, man, trunk
@@ -451,9 +449,6 @@ o Added eth_get_pcap_devname() that matches up a dnet name to its pcap
equivalent by matching hardwar addresses. It's similar to the code equivalent by matching hardwar addresses. It's similar to the code
used in eth_open() used in eth_open()
o Added SCTP support. Not including patches since the SCTP changes
will be included in the next libdnet release. [Daniel Roethlisberger]
o Handle the case of sa_len == 0 (meaning 0.0.0.0) in addr_stob. o Handle the case of sa_len == 0 (meaning 0.0.0.0) in addr_stob.
Index: src/addr.c Index: src/addr.c
=================================================================== ===================================================================
@@ -480,3 +475,29 @@ Index: src/addr.c
} }
for (n = i = 0; i < len; i++, n += 8) { for (n = i = 0; i < len; i++, n += 8) {
if (p[i] != 0xff) if (p[i] != 0xff)
o Fixed a case where an open file may not be closed in intf_loop() [Josh]
Index: src/intf.c
===================================================================
--- src/intf.c (revision 14004)
+++ src/intf.c (working copy)
@@ -677,8 +677,10 @@
intf->ifc.ifc_buf = (caddr_t)intf->ifcbuf;
intf->ifc.ifc_len = sizeof(intf->ifcbuf);
- if (ioctl(intf->fd, SIOCGIFCONF, &intf->ifc) < 0)
+ if (ioctl(intf->fd, SIOCGIFCONF, &intf->ifc) < 0) {
+ fclose(fp);
return (-1);
+ }
ret = 0;
while (fgets(buf, sizeof(buf), fp) != NULL) {
===CHANGES ALREADY MERGED TO UPSTREAM LIBDNET GO BELOW THIS LINE===
o Added SCTP support. [Daniel Roethlisberger]
Merged to libdnet r651 and r652.