1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-01 12:29:03 +00:00

Documenting an earlier change and adding a new, related one:

o Nsock now supports binding to a local address and setting IPv4 options
  with nsi_set_localaddr() and nsi_set_ipoptions(), respectively. [Kris]

o Nmap's Nsock-utilizing subsystems (DNS, NSE, version detection) have been
  updated to support the -S and --ip-options flags. [Kris]
This commit is contained in:
kris
2008-07-14 19:52:31 +00:00
parent 205ffa2274
commit ffb3d8202d
5 changed files with 36 additions and 3 deletions

View File

@@ -272,6 +272,8 @@ void NmapOps::Initialize() {
scripttrace = 0;
scriptupdatedb = 0;
#endif
memset(&sourcesock, 0, sizeof(sourcesock));
sourcesocklen = 0;
}
bool NmapOps::TCPScan() {
@@ -378,9 +380,6 @@ void NmapOps::ValidateOptions() {
if (osscan) {
fatal("TCP/IP fingerprinting (for OS scan) requires %s.", privreq);
}
if (ipoptionslen)
fatal("Sorry, using ip options requires %s.", privreq);
}