]> git.proxmox.com Git - mirror_iproute2.git/commit
tc: flower: support matching on ICMP type and code
authorSimon Horman <simon.horman@netronome.com>
Wed, 7 Dec 2016 13:54:03 +0000 (14:54 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 9 Dec 2016 20:46:34 +0000 (12:46 -0800)
commiteb3b5696f16334b4513ad42882ca6bc35b78144d
tree4bc3ff982916ad07f3a10daab7d2c0c14869a96c
parent6910d65661a3718ef4b944251a0dec170027f3d5
tc: flower: support matching on ICMP type and code

Support matching on ICMP type and code.

Example usage:

tc qdisc add dev eth0 ingress

tc filter add dev eth0 protocol ip parent ffff: flower \
indev eth0 ip_proto icmp type 8 code 0 action drop

tc filter add dev eth0 protocol ipv6 parent ffff: flower \
indev eth0 ip_proto icmpv6 type 128 code 0 action drop

Signed-off-by: Simon Horman <simon.horman@netronome.com>
man/man8/tc-flower.8
tc/f_flower.c