]> git.baikalelectronics.ru Git - kernel.git/commit
ipvlan: scrub skb before routing in L3 mode.
authorMahesh Bandewar <maheshb@google.com>
Sun, 21 Feb 2016 03:31:32 +0000 (19:31 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Feb 2016 03:43:24 +0000 (22:43 -0500)
commitf2087c25df2ebdd1f63f3dc019c8a1f70ef674ab
treeaa5355c96761db9149a163adfec2ce5285eb4168
parentca44abd70975d130c31cc0cc622541b3e40932e4
ipvlan: scrub skb before routing in L3 mode.

Scrub skb before hitting the iptable hooks to ensure packets hit
these hooks. Set the xnet param only when the packet is crossing the
ns boundry so if the IPvlan slave and master belong to the same ns,
the param will be set to false.

Signed-off-by: Mahesh Bandewar <maheshb@google.com>
CC: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipvlan/ipvlan_core.c