1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

190 Commits

Author SHA1 Message Date
dmiller
9847a701e4 Make large files support conditional
nse_fs.cc was forcing large files support, and it was broken on AIX due
to this GCC bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=20366

Now we let autoconf handle setting the appropriate defines, and also
check for this particular bug before defining.
2014-09-09 05:04:17 +00:00
dmiller
467bc7d3a5 Correct an incompatibility (#define X 1 instead of /**/) 2014-08-26 20:02:24 +00:00
batrick
de27812fe4 Revert libssh2 branch, for now.
$ svn merge -r r33518:r33513 .

and removed added scripts to the script.db.

The branch needs further refinement/testing for Windows and Mac before merging
into the trunk. There is also the latent EOF bug which is giving performance
issues.

Further work on the branch will continue in Devin's latest branch:

/nmap-exp/devin/nmap-libssh2
2014-08-18 03:12:00 +00:00
devin
63f997ed28 Merged libssh2-integration branch 2014-08-14 02:09:00 +00:00
dmiller
add985a2d1 Update configure from configure.ac after r33055 (whitespace) 2014-06-26 02:53:55 +00:00
jay
5f27fb12a6 The change in the configure script done in r32919 would be overwritten next time someone ran autoconf.
Changed configure.ac instead and ran autoconf 2.69 to regenerate configure.
2014-06-06 07:10:18 +00:00
jay
b0303ac883 Add randomizer to configure script so that a random ASCII art from docs/leet-nmap-ascii-art*.txt is printed 2014-05-31 10:34:11 +00:00
dmiller
2e047114f6 Improve support for non-included libpcap in nsock 2014-01-26 16:38:22 +00:00
dmiller
393b4b21ee Add Ndiff tests to "make check" 2014-01-10 16:26:42 +00:00
dmiller
434efb1266 Cause make check to run nmap --script=unittest 2014-01-10 16:26:40 +00:00
dmiller
96141b431e Implement "make check" for zenmap
Currently, this just uses Python's unittest module to autodiscover
tests, which may skip some, but is better than nothing. TODO: move tests
to their own module and let the zenmap_check target test them directly.
2014-01-09 16:39:39 +00:00
dmiller
fc49e4ade6 Let "make check" only check appropriate things
When configuring --without-ncat, "make check" was trying to run Ncat's
test suite. This commit splits the check target into ncat_check and
nsock_check, and makes each conditional on that subsystem's configure
status.
2014-01-07 19:04:12 +00:00
dmiller
44e251306e Re-autoconf the configure scripts (using 2.69) 2013-12-11 23:17:47 +00:00
david
6b7b428cb9 Remove COMPAT_SRCS and COMPAT_OBJS.
These appear not to have any effect any more. They were initially used
to conditionally compile and link some files with replacements for
standard library functions, but seem not to have been used after r828
("Moved to nbase system for compatability funcs").
2013-05-13 04:21:11 +00:00
fyodor
ea05ae2586 Latest auto-generated files in prep for upcoming 6.20BETA1 release 2012-11-16 00:54:16 +00:00
david
c4d08dc391 Correcly append to CXXFLAGS with --with-localdirs.
Patch by arrowdodger. http://seclists.org/nmap-dev/2012/q4/34.
2012-10-06 20:23:05 +00:00
david
7e5c9a8914 Regen with Autoconf 2.68 and aclocal 1.11.6.
for DIR in . nbase ncat nsock/src nping;
	do (echo $DIR; cd $DIR && aclocal --force && autoconf --force);
done
2012-09-19 16:41:35 +00:00
david
cb68c85409 Don't use exit in PCAP_IS_SUITABLE.
John Spencer reported that musl libc doesn't automatically include
<stdlib.h>, as Glibc does, so the configure check was wrongly failing.

conftest.c: In function 'main':
conftest.c:35:5: error: implicit declaration of function 'exit'
2012-09-08 19:44:24 +00:00
fyodor
5fc6887c01 Regenerate configure. This regenerated version seems to include more of the Lua 5.2 changes than appear in trunk 2012-06-16 19:44:25 +00:00
batrick
000f6dc4d9 Lua 5.2 upgrade [1] for NSE.
[1] http://seclists.org/nmap-dev/2012/q2/34
2012-05-27 08:53:32 +00:00
david
685f5fa4c3 Define SOLARIS_BPF_PCAP_CAPTURE for Solaris 11.
Solaris 11 uses BPF packet capture rather than DLPI, which requires
different handling in many cases. The new preprocessor symbol tells when
this is the case; it is additional granularity on top of SOLARIS.
2012-04-07 08:07:41 +00:00
david
98609b946c Regen aclocal.m4. 2012-03-07 03:15:51 +00:00
david
894f858fd4 Include <sys/types.h> in the PCAP_IS_SUITABLE test.
The lack of this was causing PCAP_IS_SUITABLE to fail on Arch Linux, at
least. I think that in some cases this caused both -L../libpcap and
-lpcap to be added to the linker line, which could cause an error
because of the need to link with -lnl. (We check for -lnl when
--with-libpcap=included is used (since r23163), but the PCAP_IS_SUITABLE
failure went around this check and allowed linking with the included
libpcap without checking whether -lnl is required.)

Here are reported build failures and responses:
http://seclists.org/nmap-dev/2011/q3/449
http://seclists.org/nmap-dev/2011/q4/33
http://seclists.org/nmap-dev/2012/q1/369
2012-03-04 05:18:08 +00:00
david
9bf94d5027 Don't config in nmap-update without APR and libsvn1. 2012-02-01 00:38:43 +00:00
david
899a1314d3 Add --with-apr using the APR_FIND_APR macro from Apache. 2012-02-01 00:38:41 +00:00
david
83f1d573c0 Add --with-subversion to configure scripts. 2012-02-01 00:38:39 +00:00
david
17aaa5b6f1 Allow svn include files to be in /usr/include or a subversion-1
subdirectory.
2011-12-19 05:16:20 +00:00
david
f8e4071164 Add configure/Makefile stuff for libsvn1 detection.
nmap-update is built optionally, only if libsvn1 is present.
2011-12-19 05:16:17 +00:00
david
358d005ac9 Regen configure. 2011-12-14 22:14:43 +00:00
david
4fb375b96d Check for libcrypt on AIX, otherwise static linking doesn't work. 2011-10-19 22:40:49 +00:00
david
a88d0d3be9 Regen configures with Autoconf 2.68. 2011-10-05 05:43:42 +00:00
david
8e832d6067 Move the HAVE_SOCKADDR_SA_LEN test to nbase. 2011-09-26 22:26:51 +00:00
david
5d39765730 Check that pcap_get_selectable_fd is declared in PCAP_IS_SUITABLE.
On AIX this test was passing even though this error happened on
compiling:
netutil.cc: In function 'int my_pcap_get_selectable_fd(pcap_t*)':
netutil.cc:870:34: error: 'pcap_get_selectable_fd' was not declared in this scope
2011-09-24 06:35:38 +00:00
david
9bf2ec3884 Merge from /nmap-exp/luis/nmap-os6.
svn merge --ignore-ancestry svn://svn.insecure.org/nmap@26621 svn://svn.insecure.org/nmap-exp/luis/nmap-os6

This is the IPv6 OS detection branch. "nmap -6 -O" works now, though at
this point it only prints fingerprints and not OS guesses, because we
need to collect more submissions.
2011-09-19 18:31:46 +00:00
david
4aa4a154f9 Merge from /nmap-exp/david/nmap-ipv6.
This is raw IPv6 packet support for most port and ping scans, Neighbor
Discovery, and traceroute.
2011-06-08 01:24:48 +00:00
david
ff7e265138 o Stopped linking against libnl when not necessary (when linking
dynamically with libpcap). Patch by Kevin Locke.
2011-05-13 21:59:09 +00:00
david
33eb70b7f2 Regen configure. 2011-02-25 03:08:24 +00:00
david
82ec5be065 Assume that any user-provided liblua is recent enough when cross-compiling.
That this was a problem was reported by Nuno Gonçalves.
2010-09-29 16:09:26 +00:00
kris
a0d89f20d6 Set {NDIFF,NPING,ZENMAP}DIR in configure.ac and substitute it in the Makefile
instead of having the directory names in Makefile.in.  This is how most
everything else works: Ncat (NCATDIR), liblua (LIBLUADIR), etc.
2010-08-19 16:38:54 +00:00
fyodor
9b4b172045 Update generated content for new release 2010-07-16 00:43:59 +00:00
luis
da126c8b78 Merged nmap-dedup branch from nmap-exp/luis/nmap-dedup. This completes the Nmap/Nping code de-duplication phase. 2010-06-22 17:24:34 +00:00
david
e3e9dedc78 Regenerate configure with Autoconf 2.63 for ease of merging with
nmap-dedup.
2010-06-18 15:28:31 +00:00
david
0bb200e105 Look for and link with libnl. This is needed when linking with the new
libpcap 1.1.1 on Linux, when libpcap is also linked with libnl (which is
is when available).
2010-06-13 23:24:41 +00:00
luis
79c5e1564b Updated configure script to reflect the changes in r18001 2010-06-10 15:14:23 +00:00
david
34a6753f73 Add a check to see if the libpcap library needs and has a workaround for the
BPF_TIMEVAL BIOCSRTIMEOUT bug that affects OS X 10.6. If the size of the
parameter to the BIOCSRTIMEOUT ioctl is sizeof(struct timeval) we assume the
workaround is not needed (most platforms). If they are unequal, we assume that
version 1.1.0 or later has a workaround.
2010-04-20 23:22:48 +00:00
david
701fe380f8 Move the libpcap version number check into acinclude.m4, call it
PCAP_IS_SUITABLE.
2010-04-20 22:02:10 +00:00
david
a2b7e309ce With --with-libpcap=included, link driectly against libpcap/libpcap.a instead
of adding -Llibpcap/ -lpcap to LDFLAGS. The latter, at least on OS X, still
links dynamically against the system installation of libpcap. This is
consistent with how --with-libpcre=included works.
2010-04-19 20:09:58 +00:00
david
a669c3a39f Merge r16779:16804 from /nmap-exp/david/nmap-nping. This adds Nping
into the standard distribution.
2010-02-17 01:46:34 +00:00
david
6b87459a58 Add --enable-nls and --disable-nls options to configure. These are used
to control whether translations of man pages are installed (by default
they will be). Even though we're not using gettext for translations, I
tried to make this interface as similar as possible to the gettext
configuration interface. Use can use the environment variable LINGUAS to
control which man pages get installed if you don't want all of them, for
example LINGUAS="es de". The translated man pages are not yet committed.
2009-11-05 19:50:33 +00:00
david
02625c9677 Run aclocal to get Python macros compatible with Python 3, and
regenerate configure.
2009-11-05 17:00:31 +00:00