mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 16:57:06 +00:00
Fix --send-ip check in win32_fatal_raw_sockets.
The meaning of this test was accidentally inverted in r29931. It is supposed to give a fatal error when trying to scan on an non-Ethernet device, unless you have also used the --send-ip option.
This commit is contained in:
parent
cb3d88247b
commit
37639cf132
1 changed files with 1 additions and 1 deletions
|
|
@ -248,7 +248,7 @@ static void print_xml_service(const struct serviceDeductions *sd) {
|
|||
/* Show a fatal error explaining that an interface is not Ethernet and won't
|
||||
work on Windows. Do nothing if --send-ip (PACKET_SEND_IP_STRONG) was used. */
|
||||
void win32_fatal_raw_sockets(const char *devname) {
|
||||
if ((o.sendpref & PACKET_SEND_IP_STRONG) == 0)
|
||||
if ((o.sendpref & PACKET_SEND_IP_STRONG) != 0)
|
||||
return;
|
||||
|
||||
if (devname != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue