mirror of
https://github.com/nmap/nmap.git
synced 2025-12-08 05:31:31 +00:00
Remove some code which Michael correctly surmised isn't used. Replace it with
an assertion.
This commit is contained in:
9
tcpip.cc
9
tcpip.cc
@@ -3090,13 +3090,10 @@ bool route_dst(const struct sockaddr_storage *const dst, struct route_nfo *rnfo)
|
|||||||
fatal("Sorry -- %s currently only supports IPv4", __func__);
|
fatal("Sorry -- %s currently only supports IPv4", __func__);
|
||||||
|
|
||||||
if (o.spoofsource) {
|
if (o.spoofsource) {
|
||||||
memcpy(&rnfo->srcaddr, &spoofss, sizeof(rnfo->srcaddr));
|
|
||||||
o.SourceSockAddr(&spoofss, &spoofsslen);
|
o.SourceSockAddr(&spoofss, &spoofsslen);
|
||||||
if (!*o.device) {
|
/* The device corresponding to this spoofed address should already have been
|
||||||
/* Look up the device corresponding to src IP, if any ... */
|
set elsewhere. */
|
||||||
//WARNING: THIS IS NEVER USED(i think)
|
assert(o.device[0] != '\0');
|
||||||
iface = getInterfaceByIP(&spoofss);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//dont use this method for user specified devices
|
//dont use this method for user specified devices
|
||||||
|
|||||||
Reference in New Issue
Block a user