1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-14 11:49:01 +00:00
Commit Graph

32 Commits

Author SHA1 Message Date
david
6ec453e4e8 Add socket_bindtodevice function to Nbase.
The Linux-specific SO_BINDTODEVICE sockopt causes packets to be sent on
a specific interface, in cases where merely setting the source address
does not uniquely determine the interface.
2012-10-03 15:43:22 +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
43a920120e Rename configlocal.m4 to acinclude.m4 for uniformity. 2012-09-19 16:41:31 +00:00
david
ad61d6de85 Remove unused aclocal.m4 files.
These aren't getting regenerated even with "aclocal --force"; I think
it's because there is nothing to put in them. Running "aclocal
--verbose" shows that all the required macros are in acinclude.m4 files:

aclocal: saw macro PCAP_IS_SUITABLE
aclocal: saw macro RECVFROM_ARG6_TYPE
aclocal: saw macro PCAP_IS_SUITABLE
aclocal: saw macro CHECK_IPV6_IPPROTO_RAW
aclocal: saw macro APR_FIND_APR
aclocal: ../acinclude.m4 is already included by configure.ac
2012-09-19 16:41:28 +00:00
david
ecf62c247a Check for and include <sys/select.h>.
This was reported as a build error by John Spencer using musl libc.
http://seclists.org/nmap-dev/2012/q3/776
2012-09-12 04:54:21 +00:00
david
fed81c865a Include <arpa/inet.h> in APR_CHECK_WORKING_GETNAMEINFO.
http://seclists.org/nmap-dev/2012/q3/777
2012-09-12 04:23:24 +00:00
david
2c092db698 Don't use exit in APR_CHECK_WORKING_GETNAMEINFO.
Same reason as r29737.

http://seclists.org/nmap-dev/2012/q3/777
2012-09-12 04:23:23 +00:00
henri
68a1545c83 Added missing SVN properties and Id tags 2012-09-10 20:53:09 +00:00
henri
0f521a8697 Indentation fixes:
$ indent -nut -i2 -kr -br -brs -brf -l0 -bad -npcs -nprs -ncs nbase_memalloc.c
2012-09-10 08:20:25 +00:00
david
6f61403f52 Don't use exit in APR_CHECK_WORKING_GETADDRINFO.
For the same reason as in r29737.
2012-09-08 19:45:38 +00:00
sean
982f26ccf6 Removed the pragma as liblua ignored it. 2012-06-21 04:25:25 +00:00
sean
663c44acc9 Tidied up the #pragma command 2012-06-21 04:16:04 +00:00
sean
0c1c89a022 Added a pragma to supress the lgc.c(988): warning C4146: unary minus operator applied to
unsigned type, result still unsigned. We don't want to fix liblua
2012-06-21 03:55:24 +00:00
sean
e111cb35db Fixed the other C4005 with EWOULDBLOCK EHOSTUNREACH ENETDOWN ENETUNREACH ENETRESET ETIMEDOUT EINPROGRESS ENOBUFS EMSGSIZE ENOBUFS _HAS_CPP0X so that now the Windows source of NMAP compiles without Compile time warnings. There are still link warnings though. 2012-06-12 02:10:56 +00:00
sean
3b1341508a -Tnother error C4005 this one for ECONNABORTED:
his line, and those below, will be ignored--

M    nbase/nbase_winunix.h
2012-06-12 01:48:42 +00:00
sean
a5d33580ea Added a comment with a pointer to the link on error C4800 2012-06-10 17:49:26 +00:00
sean
cd4fd5eee5 Fixed an error C4005: "C4005: 'ECONNRESET' : macro redefinition" by added a #undef above it 2012-06-10 17:48:50 +00:00
sean
87768241ec Fixed the warning about signed and unsigned comparision by changing j into an unsigned variable. 2012-06-10 17:30:40 +00:00
sean
9d32482c5a Fixed the warning C4800 by adding a pragma to ignore that warning. 2012-06-10 17:26:02 +00:00
david
01a613f7a8 Typo. 2012-05-11 15:38:05 +00:00
david
2e8f418d2c Remove byte order dependency in in_addr_to_octets.
Because in_addr is stored in network byte order, this function could
extract the octets in MSB-to-LSB order or in LSB-to-MSB order. This
didn't matter in the case of resolved names, because the same order was
used when generating the octet array and later when matching against it.
But the function parse_ipv4_ranges, which handles literal IPv4
addresses, always uses octet[0] as the MSB, so comparisons failed in
later matching.

As it was, the code worked on little-endian architectures but didn't on
big-endian.
2012-04-17 04:36:08 +00:00
david
e1576d1d14 Change alloc_sprintf to return a length. 2012-03-08 23:56:26 +00:00
david
e28fb42ff4 Move alloc_sprintf from xml.cc to nbase. 2012-03-08 23:56:07 +00:00
fyodor
684f42c4ad One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
fyodor
e96a7b7b24 Update the headers for each code file. This updates code copyright dates to 2012, notes the awesome NSE in the list of technology, and slightly rewords the derivative works clarification 2012-03-01 06:32:23 +00:00
david
6c64ba9851 Remove ENOENT from the list of WSAE* defines we override.
ENOENT wasn't being used by other code in a networking context. I need
to be able to detect a real ENOENT from a file deletion.
2011-12-19 05:16:30 +00:00
david
620431e723 Give addset_elem_print external visibility. 2011-12-08 23:16:56 +00:00
david
d4feb365e2 Print IPv4 octect bit vectors in the opposite order (big endian). 2011-12-08 23:16:55 +00:00
david
ab82ccd033 Set field width based on sizeof(bitvector_t). 2011-12-08 23:16:54 +00:00
david
69c6779965 Remove extra line output in addrset_elem_print. 2011-12-08 23:16:54 +00:00
david
a7a763ee52 Let addrset_elem_print take a FILE * argument. 2011-12-08 23:16:53 +00:00
david
ed2ba4e168 Copy nping, nsock, nbase, zenmap, ncat from their homes in /.
If you have trouble updating after this revision you need to follow
these instructions. You have probably just seen an error like this:

svn: URL 'svn://svn.insecure.org/nping' of existing directory 'nping'
does not match expected URL 'svn://svn.insecure.org/nmap/nping'

This is caused by the replacement of SVN externals.

Here's what you need to do. First, save any local changes you might have
in the nping, nsock, nbase, ncat, and zenmap directories. (For example
by running "cd nping; svn diff > ../nping.diff".) If you don't have any
local changes you can skip this step.

Then run these commands:

rm -rf nping/ nsock/ nbase/ ncat/ zenmap/
svn update
svn cleanup

If all else fails, you can just delete your whole working directory and
check out anew:

svn co --username guest --password "" svn://svn.insecure.org/nmap

There may be further discussion in the mailing list thread at
http://seclists.org/nmap-dev/2011/q4/303.
2011-11-16 21:49:44 +00:00