From df028e420c174cf2a41508beaff7a2c96c6afe63 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Tue, 17 Sep 2013 08:10:36 -0700 Subject: [PATCH] Use 'ip neigh ls' when 'arp' isn't installed. - From Martin Gignac Signed-off-by: Tom Eastep --- Shorewall-core/lib.cli | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Shorewall-core/lib.cli b/Shorewall-core/lib.cli index aaff30ad5..c52b328ab 100644 --- a/Shorewall-core/lib.cli +++ b/Shorewall-core/lib.cli @@ -1503,7 +1503,12 @@ do_dump_command() { if [ $g_family -eq 4 ]; then heading "ARP" - arp -na + 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