Correct status output with CONFIG_IP_ADVANCED_ROUTER=n

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@2023 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2005-04-01 22:30:38 +00:00
parent 8912f5b528
commit 49224ad36f
3 changed files with 22 additions and 9 deletions

View File

@ -10,6 +10,8 @@ Changes in 2.2.3
5) Add QUEUE policy.
6) Fix routing output when advanced routing support not in kernel.
Changes in 2.2.2
1) The 'check' command disclaimer is toned down further and only

View File

@ -7,6 +7,10 @@ Problems corrected in version 2.2.3
<interface>:!<network> in the HOSTS column then startup errors occur
on "shorewall [re]start".
2) Previously, if "shorewall status" was run on a system whose kernel
lacked advanced routing support (CONFIG_IP_ADVANCED_ROUTER), then
no routing information was displayed.
-----------------------------------------------------------------------
New Features in version 2.2.3

View File

@ -1014,17 +1014,24 @@ case "$1" in
done
done
echo
echo "Routing Rules"
echo
ip rule ls
ip rule ls | while read rule; do
table=${rule##* }
if [ -n "$(ip rule ls)" ]; then
echo
echo "Table $table:"
echo "Routing Rules"
echo
ip route ls table $table
done
ip rule ls
ip rule ls | while read rule; do
table=${rule##* }
echo
echo "Table $table:"
echo
ip route ls table $table
done
else
echo
echo "Routing Table"
echo
ip route ls
fi
echo
echo "ARP"