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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user