mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-08 08:44:05 +01:00
Add undocumented -c option to show and dump
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
cbeebb6bf8
commit
3e8c1f4e3c
@ -399,6 +399,11 @@ show_routing() {
|
||||
heading "Table $table:"
|
||||
ip route list table $table
|
||||
done
|
||||
|
||||
if [ -n "$g_routecache" ]; then
|
||||
heading "Route Cache"
|
||||
ip -4 route list cache
|
||||
fi
|
||||
else
|
||||
heading "Routing Table"
|
||||
ip route list
|
||||
@ -537,6 +542,10 @@ show_command() {
|
||||
g_ipt_options1="--line-numbers"
|
||||
option=${option#l}
|
||||
;;
|
||||
c*)
|
||||
g_routecache=Yes
|
||||
option=${option#c}
|
||||
;;
|
||||
*)
|
||||
usage 1
|
||||
;;
|
||||
@ -915,6 +924,10 @@ do_dump_command() {
|
||||
g_ipt_options1="--line-numbers"
|
||||
option=${option#l}
|
||||
;;
|
||||
c*)
|
||||
g_routecache=Yes
|
||||
option=${option#c}
|
||||
;;
|
||||
*)
|
||||
usage 1
|
||||
;;
|
||||
|
@ -391,10 +391,17 @@ show_routing() {
|
||||
heading "Table $table:"
|
||||
ip -6 route list table $table
|
||||
done
|
||||
|
||||
if [ -n "$g_routecache" ]; then
|
||||
heading "Route Cache"
|
||||
ip -6 route list cache
|
||||
fi
|
||||
else
|
||||
heading "Routing Table"
|
||||
ip -6 route list
|
||||
fi
|
||||
|
||||
|
||||
}
|
||||
|
||||
#
|
||||
@ -520,6 +527,10 @@ show_command() {
|
||||
g_ipt_options1="--line-numbers"
|
||||
option=${option#l}
|
||||
;;
|
||||
c*)
|
||||
g_routecache=Yes
|
||||
option=${option#c}
|
||||
;;
|
||||
*)
|
||||
usage 1
|
||||
;;
|
||||
@ -848,6 +859,10 @@ do_dump_command() {
|
||||
g_ipt_options1="--line-numbers"
|
||||
option=${option#l}
|
||||
;;
|
||||
c*)
|
||||
g_routecache=Yes
|
||||
option=${option#c}
|
||||
;;
|
||||
*)
|
||||
usage 1
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user