]> git.karo-electronics.de Git - karo-tx-linux.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)
commitc3aaa06d5a63609641b7ad62ee0956f3de86c1cd
treeaa5355c96761db9149a163adfec2ce5285eb4168
parent86310cc42ddf300a9482c613720e7811abec2c4c
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