batman-adv: Create batman soft interfaces within correct netns.
authorAndrew Lunn <andrew@lunn.ch>
Thu, 21 Apr 2016 10:57:27 +0000 (12:57 +0200)
committerAntonio Quartulli <a@unstable.cc>
Tue, 10 May 2016 10:26:44 +0000 (18:26 +0800)
commit2cd45a0671d9e37ab20e844fc4c84717a38b7f52
tree942ed97ece08be93115eaebf09d98515ef45c608
parent0d21cdaa9bbf5efae95cfb6346d26ff6e61f8896
batman-adv: Create batman soft interfaces within correct netns.

When creating a soft interface, create it in the same netns as the
hard interface. Replace all references to init_net with the correct
name space for the interface being manipulated.

Suggested-by: Daniel Ehlers <danielehlers@mindeye.net>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Acked-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
net/batman-adv/hard-interface.c
net/batman-adv/hard-interface.h
net/batman-adv/soft-interface.c
net/batman-adv/soft-interface.h
net/batman-adv/sysfs.c
net/batman-adv/translation-table.c