Skip to content

Commit f32ed4b

Browse files
ecsvsimonwunderlich
authored andcommitted
batman-adv: Provide TTVN in the mesh_info netlink msg
The TTVN is the main information for the debugging of translation table problems. It is therefore necessary when comparing the global translation tables. Signed-off-by: Sven Eckelmann <[email protected]> Signed-off-by: Simon Wunderlich <[email protected]> Signed-off-by: Marek Lindner <[email protected]>
1 parent d34f055 commit f32ed4b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

net/batman-adv/netlink.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "netlink.h"
1919
#include "main.h"
2020

21+
#include <linux/atomic.h>
2122
#include <linux/errno.h>
2223
#include <linux/fs.h>
2324
#include <linux/genetlink.h>
@@ -121,7 +122,9 @@ batadv_netlink_mesh_info_put(struct sk_buff *msg, struct net_device *soft_iface)
121122
nla_put_u32(msg, BATADV_ATTR_MESH_IFINDEX, soft_iface->ifindex) ||
122123
nla_put_string(msg, BATADV_ATTR_MESH_IFNAME, soft_iface->name) ||
123124
nla_put(msg, BATADV_ATTR_MESH_ADDRESS, ETH_ALEN,
124-
soft_iface->dev_addr))
125+
soft_iface->dev_addr) ||
126+
nla_put_u8(msg, BATADV_ATTR_TT_TTVN,
127+
(u8)atomic_read(&bat_priv->tt.vn)))
125128
goto out;
126129

127130
primary_if = batadv_primary_if_get_selected(bat_priv);

0 commit comments

Comments
 (0)