1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-14 03:39:02 +00:00
Commit Graph

10 Commits

Author SHA1 Message Date
dmiller
04ac366666 Fix nsock tests using wrong type (clang complains) 2014-12-31 04:30:58 +00:00
dmiller
59de1a50de Fix Nsock's make check: wrong value tested 2014-11-17 13:32:41 +00:00
dmiller
f6d70cd3e6 Revert r33815 (unrelated changes) 2014-11-17 13:31:56 +00:00
dmiller
2b9fade75b Fix Nsock's make check: wrong value tested 2014-11-17 13:25:35 +00:00
henri
97103efdfb Try to trigger connection failure in a more portable way.
The former one was hackish and didn't behave consistently
between operating systems.

Passing in a zero addrlen should reliably make connect(2) fail.
2014-08-10 18:31:00 +00:00
henri
240da6ede2 Attempt to connect to 0.0.0.1 to reliably trigger an error.
0.0.0.1 seems to always fail with EINVAL, where 192.0.2.1 actually sends
a probe (and timeout.)
2014-06-11 20:14:20 +00:00
henri
a00aa0a460 New nsock regression test: TestConnectFailure.
Trigger a ENETUNREACH error on connect() and check if properly reported.

As of now the test fails, the error isn't delivered.
2014-06-05 19:44:00 +00:00
henri
23ad881d6b Removed superfluous includes.
Report and patch by Gisle Vanem.
2013-08-06 20:10:57 +00:00
henri
8475cef210 Return actual error code. 2013-05-11 16:00:11 +00:00
henri
3776852557 Added simple TCP connect test and setup ncat listeners.
The listeners are ncat-based echo servers:
  - UDP
  - TCP
  - TCP + SSL
2013-05-10 08:26:48 +00:00