Don't show IPv6 cached routes unless asked.

Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
Tom Eastep 2011-12-26 11:57:18 -08:00
parent 5520a6d31d
commit 6db8748ee8

View File

@ -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