]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: cls_flower: Support matching on ICMP type and code
authorSimon Horman <simon.horman@netronome.com>
Wed, 7 Dec 2016 12:48:28 +0000 (13:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 8 Dec 2016 16:47:08 +0000 (11:47 -0500)
commitc5e0356485e7d542a199e1ca78585c00c68c77b4
treeb831a8c75cc51ff2e43f966e08e30959267ed75b
parent6458658abefad1f62d5eef94390862d7f389547c
net/sched: cls_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>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/uapi/linux/pkt_cls.h
net/sched/cls_flower.c