mirror of
https://github.com/nmap/nmap.git
synced 2025-12-10 09:49:05 +00:00
Fix up indentation in route_dst in tcpip.cc (no code changes). This function
has been messed up for a while and I was having trouble reading it. I changed it to use the mix of 8-wide tabs and spaces used by most of the rest of the file.
This commit is contained in:
7
tcpip.cc
7
tcpip.cc
@@ -3102,14 +3102,15 @@ bool route_dst(const struct sockaddr_storage *const dst, struct route_nfo *rnfo)
|
||||
//dont use this method for user specified devices
|
||||
if(!*o.device) {
|
||||
ifaces = getinterfaces(&numifaces);
|
||||
/* I suppose that I'll first determine whether it is a direct connect instance */
|
||||
/* I suppose that I'll first determine whether it is a direct connect
|
||||
instance */
|
||||
for(ifnum=0; ifnum < numifaces; ifnum++) {
|
||||
ifsin = (struct sockaddr_in *) &ifaces[ifnum].addr;
|
||||
if (ifsin->sin_family != AF_INET) continue;
|
||||
if (dstsin->sin_addr.s_addr == ifsin->sin_addr.s_addr &&
|
||||
ifaces[ifnum].device_type != devt_loopback) {
|
||||
/* Trying to scan one of the machine's own interfaces -- we need
|
||||
to use the localhost device for this */
|
||||
/* Trying to scan one of the machine's own interfaces -- we need to use
|
||||
the localhost device for this */
|
||||
for(i=0; i < numifaces; i++)
|
||||
if (ifaces[i].device_type == devt_loopback)
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user