Use 'ip neigh ls' when 'arp' isn't installed.

- From Martin Gignac

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2013-09-17 08:10:36 -07:00
parent ff634ac776
commit df028e420c

View File

@ -1503,7 +1503,12 @@ do_dump_command() {
if [ $g_family -eq 4 ]; then
heading "ARP"
if qt mywhich arp; then
arp -na
else
ip -4 neigh ls
ip -4 neigh ls proxy
fi
else
heading "Neighbors"
ip -6 neigh ls