Skip to content

Commit

Permalink
Do not display localnet info with --plain option (#159)
Browse files Browse the repository at this point in the history
* Do not display localnet info with --plain option

* Updated ChangeLog
  • Loading branch information
royhills authored Mar 10, 2023
1 parent ed3706f commit fe2b609
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
2023-03-09 Roy Hills <royhills@hotmail.com>

* 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 <royhills@hotmail.com>

* 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 <royhills@hotmail.com>

Expand Down
6 changes: 4 additions & 2 deletions arp-scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fe2b609

Please sign in to comment.