diff options
author | Sven Eckelmann <sven@narfation.org> | 2013-02-11 17:10:26 +0800 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2013-03-27 10:27:34 +0100 |
commit | a4ac28c0d06a1c22138225a228d3a4eaffe9dd77 (patch) | |
tree | 22b25cf7d9ae68263b15d60f4dded639b35d93ed /net/batman-adv/main.h | |
parent | e07932ae6fb74ef707b2b27762fb0ad8aea4b55f (diff) | |
download | kernel_goldelico_gta04-a4ac28c0d06a1c22138225a228d3a4eaffe9dd77.zip kernel_goldelico_gta04-a4ac28c0d06a1c22138225a228d3a4eaffe9dd77.tar.gz kernel_goldelico_gta04-a4ac28c0d06a1c22138225a228d3a4eaffe9dd77.tar.bz2 |
batman-adv: Allow to use rntl_link for device creation/deletion
The sysfs configuration interface of batman-adv to add/remove soft-interfaces
is not deadlock free and doesn't follow the currently common way to create new
virtual interfaces.
An additional interface though rtnl_link is introduced which provides easy device
creation/deletion with tools like "ip":
$ ip link add dev bat0 type batadv
$ ip link del dev bat0
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r-- | net/batman-adv/main.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index 0afd4ee..a9e12e6 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h @@ -152,6 +152,7 @@ enum batadv_uev_type { #include <linux/percpu.h> #include <linux/slab.h> #include <net/sock.h> /* struct sock */ +#include <net/rtnetlink.h> #include <linux/jiffies.h> #include <linux/seq_file.h> #include "types.h" |