]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/f_flower.c
tc: flower: Support matching ARP
authorSimon Horman <simon.horman@netronome.com>
Thu, 12 Jan 2017 08:11:59 +0000 (09:11 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 13 Jan 2017 01:46:37 +0000 (17:46 -0800)
commitf888f4e20534ae44ec4c5a2cfc5209b105645a04
tree1d26dff0e92d86c7f82aa66cfd36311acb779cf4
parente2ade8cefb7ffe7d53b21a73b88a627d555c0371
tc: flower: Support matching ARP

Support matching on ARP operation, and hardware and protocol addresses
for Ethernet hardware and IPv4 protocol addresses.

Example usage:

tc qdisc add dev eth0 ingress

tc filter add dev eth0 protocol arp parent ffff: flower indev eth0 \                    arp_op request arp_sip 10.0.0.1 action drop
tc filter add dev eth0 protocol rarp parent ffff: flower indev eth0 \                   arp_op reply arp_tha 52:54:3f:00:00:00/24 action drop

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