]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/m_mirred.c
tc: m_mirred: Add support for ingress redirect/mirror
authorShmulik Ladkani <shmulik.ladkani@gmail.com>
Wed, 19 Oct 2016 14:14:09 +0000 (17:14 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Wed, 26 Oct 2016 18:20:47 +0000 (11:20 -0700)
commit5eca0a3701223619a513c7209f7d9335ca1b4cfa
tree86c9ab5e825d6191ad4a16b5777954cfaca59b03
parente770979cf1bcfc993c8279fbca28469a14c5f59b
tc: m_mirred: Add support for ingress redirect/mirror

So far, only the 'egress' direction was implemented.

Allow specifying 'ingress' as the direction packet appears on the target
interface.

For example, this takes incoming 802.1q frames on veth0 and redirects
them for input on dummy0:

 # tc filter add dev veth0 parent ffff: pref 1 protocol 802.1q basic \
     action mirred ingress redirect dev dummy0

Signed-off-by: Shmulik Ladkani <shmulik.ladkani@gmail.com>
man/man8/tc-mirred.8
tc/m_mirred.c