diff --git a/Shorewall/lib.cli b/Shorewall/lib.cli index 1d61a4ac1..a21aa1008 100644 --- a/Shorewall/lib.cli +++ b/Shorewall/lib.cli @@ -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 ;; diff --git a/Shorewall6/lib.cli b/Shorewall6/lib.cli index 3e1216143..31ad6c02d 100644 --- a/Shorewall6/lib.cli +++ b/Shorewall6/lib.cli @@ -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 ;;