mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-18 11:38:14 +01:00
Don't show IPv6 cached routes unless asked.
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
5520a6d31d
commit
6db8748ee8
@ -421,7 +421,11 @@ show_routing() {
|
|||||||
echo ${rule##* }
|
echo ${rule##* }
|
||||||
done | sort -u | while read table; do
|
done | sort -u | while read table; do
|
||||||
heading "Table $table:"
|
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
|
done
|
||||||
|
|
||||||
if [ -n "$g_routecache" ]; then
|
if [ -n "$g_routecache" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user