diff --git a/ChangeLog b/ChangeLog index 2928df9..c9c033b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,16 @@ +2023-03-09 Roy Hills + + * arp-scan.c: Don't display the localnet info ("Target list from + interface: network X netmask Y") if the --plain option is given. + https://github.com/royhills/arp-scan/issues/158 + 2023-03-09 Roy Hills * arp-scan.c, arp-scan.h, arp-scan.1.dist: Added the ${IPnum} output field, which displays the host IPv4 address as a 32-bit integer. This permits sorting by IP address using simple numeric comparison. Thanks to @gspannu for the feature request. + https://github.com/royhills/arp-scan/issues/156 2023-02-26 Roy Hills diff --git a/arp-scan.c b/arp-scan.c index a9e3f4e..faeb225 100644 --- a/arp-scan.c +++ b/arp-scan.c @@ -427,8 +427,10 @@ main(int argc, char *argv[]) { cp = my_ntoa(if_netmask); c_netmask = make_message("%s", cp); snprintf(localnet_descr, 32, "%s:%s", c_network, c_netmask); - warn_msg("Target list from interface network %s netmask %s", - c_network, c_netmask); + if (!plain_flag) { + warn_msg("Target list from interface: network %s netmask %s", + c_network, c_netmask); + } free(c_network); free(c_netmask); add_host_pattern(localnet_descr, timeout);