From 6db8748ee838529ab24fb5b1287480cf3c76c341 Mon Sep 17 00:00:00 2001 From: Tom Eastep Date: Mon, 26 Dec 2011 11:57:18 -0800 Subject: [PATCH] Don't show IPv6 cached routes unless asked. Signed-off-by: Tom Eastep --- Shorewall/lib.cli | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Shorewall/lib.cli b/Shorewall/lib.cli index ee910a165..f333f3bfe 100644 --- a/Shorewall/lib.cli +++ b/Shorewall/lib.cli @@ -421,7 +421,11 @@ show_routing() { echo ${rule##* } done | sort -u | while read table; do heading "Table $table:" - ip -$g_family route list table $table + if [ $g_family -eq 6 ]; then + ip -$g_family -o route list table $table | fgrep -v cache + else + ip -4 route list table $table + fi done if [ -n "$g_routecache" ]; then