diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2016-07-03 13:31:37 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2016-08-09 07:54:37 +0200 |
commit | d34f05507db245bef819b684ad84f9e0f9bb003d (patch) | |
tree | eed54f54f6c9e5e314e5055a754a566b800aac06 /net/batman-adv/netlink.h | |
parent | batman-adv: netlink: hardif query (diff) | |
download | linux-d34f05507db245bef819b684ad84f9e0f9bb003d.tar.xz linux-d34f05507db245bef819b684ad84f9e0f9bb003d.zip |
batman-adv: netlink: add translation table query
This adds the commands BATADV_CMD_GET_TRANSTABLE_LOCAL and
BATADV_CMD_GET_TRANSTABLE_GLOBAL, which correspond to the transtable_local
and transtable_global debugfs files.
The batadv_tt_client_flags enum is moved to the UAPI to expose it as part
of the netlink API.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
[sven.eckelmann@open-mesh.com: add policy for attributes, fix includes]
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
[sw@simonwunderlich.de: fix VID attributes content]
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Diffstat (limited to 'net/batman-adv/netlink.h')
-rw-r--r-- | net/batman-adv/netlink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/batman-adv/netlink.h b/net/batman-adv/netlink.h index b399f49504df..52eb16281aba 100644 --- a/net/batman-adv/netlink.h +++ b/net/batman-adv/netlink.h @@ -23,8 +23,11 @@ #include <linux/types.h> #include <net/genetlink.h> +struct nlmsghdr; + void batadv_netlink_register(void); void batadv_netlink_unregister(void); +int batadv_netlink_get_ifindex(const struct nlmsghdr *nlh, int attrtype); int batadv_netlink_tpmeter_notify(struct batadv_priv *bat_priv, const u8 *dst, u8 result, u32 test_time, u64 total_bytes, |