batman-adv: netlink: add translation table query
authorMatthias Schiffer <mschiffer@universe-factory.net>
Sun, 3 Jul 2016 11:31:37 +0000 (13:31 +0200)
committerSimon Wunderlich <sw@simonwunderlich.de>
Tue, 9 Aug 2016 05:54:37 +0000 (07:54 +0200)
commitd34f05507db245bef819b684ad84f9e0f9bb003d
treeeed54f54f6c9e5e314e5055a754a566b800aac06
parentb60620cf567b79da46096a0ba29b39f23b6e7f1c
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>
include/uapi/linux/batman_adv.h
net/batman-adv/netlink.c
net/batman-adv/netlink.h
net/batman-adv/packet.h
net/batman-adv/translation-table.c
net/batman-adv/translation-table.h