summaryrefslogtreecommitdiff
path: root/net/batman-adv/debugfs.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2016-07-03 11:31:33 (GMT)
committerSimon Wunderlich <sw@simonwunderlich.de>2016-08-09 05:54:35 (GMT)
commit275019d2f00ed93e800f505a7b6f9e8ecf396898 (patch)
tree2040cd321481499668914820fb7a34c49e939db7 /net/batman-adv/debugfs.c
parentb5dcbad25219b82408e15e6d775a406be2116af1 (diff)
downloadlinux-275019d2f00ed93e800f505a7b6f9e8ecf396898.tar.xz
batman-adv: Handle parent interfaces in a different netns
batman-adv tries to prevent the user from placing a batX soft interface into another batman mesh as a hard interface. It does this by walking up the devices list of parents and ensures they are all none batX interfaces. iflink can point to an interface in a different namespace, so also retrieve the parents name space when finding the parent and use it when doing the comparison. Signed-off-by: Andrew Lunn <andrew@lunn.ch> [sven@narfation.org: Fix alignments, simplify parent netns retrieval] Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv/debugfs.c')
0 files changed, 0 insertions, 0 deletions