mirror of
https://github.com/nmap/nmap.git
synced 2026-01-29 09:39:03 +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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user