mirror of
https://gitlab.com/shorewall/code.git
synced 2025-01-22 05:28:59 +01:00
Include policing filters in the show commands
Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
770637902f
commit
fa010dc020
@ -260,6 +260,11 @@ show_one_classifier() {
|
||||
fi
|
||||
done
|
||||
echo
|
||||
|
||||
if echo $2 | fgrep -q ingress; then
|
||||
echo "Ingress:"
|
||||
tc -s -d filter show dev $device parent ffff:
|
||||
fi
|
||||
}
|
||||
|
||||
show_classifier1() {
|
||||
@ -277,6 +282,9 @@ show_classifier1() {
|
||||
show_tc1() {
|
||||
show_one_tc() {
|
||||
local device
|
||||
local qdisc
|
||||
local ingress
|
||||
|
||||
device=${1%@*}
|
||||
qdisc=$(tc qdisc list dev $device)
|
||||
|
||||
@ -286,7 +294,7 @@ show_tc1() {
|
||||
echo
|
||||
tc -s -d class show dev $device
|
||||
echo
|
||||
show_one_classifier $device
|
||||
show_one_classifier $device "$qdisc"
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user