Skip to content

Investigate modifications applied by Nmap #69

@florianernst

Description

@florianernst

Hello there,

I couldn't find whether this has already been covered, so filing an issue just to be sure. Apologies in advance if this is a known topic.

Nmap ships their own stripped-down version of libdnet, based on libdnet 1.12, but with additional modifications as outlined in their NMAP_MODIFICATIONS. Those mostly seem to deal with win32 compatibility, and yet that might still be worth checking out whether it provides any additional value for libdnet in general. Also there is some IVMPv6 coverage as per RFC 4443, and Daniel Roethlisberger's SCTP addition that is part of libdnet 1.14 is included as well, just as is crc32ct.h and several other changes.

Nmap allows building against a system version of libdnet, but in their configure.ac they specifically advise against it while stating

[...]
# Unlike the other included libraries (pcap, pcre, lua), we prefer our local
# copy of libdnet. That is, with the other libraries we check for a system
# version by default, whereas with dnet we use the local version unless
# specifically asked to use a system version.  This is because we have
# made many improvements and fixes to our version of dnet.
AC_ARG_WITH(libdnet,
AC_HELP_STRING([--with-libdnet=DIR], [Use an existing (compiled) dnet lib from DIR/include and DIR/lib. This is NOT RECOMMENDED because we have made many important fixes to our included libdnet, as described at ./libdnet-stripped/NMAP_MODIFICATIONS])
AC_HELP_STRING([--with-libdnet=included], [Use the libdnet version included with Nmap (default)]),
[...]

Cheers,
Flo

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions