Skip to content

Commit 8dad6f0

Browse files
ecsvsimonwunderlich
authored andcommitted
batman-adv: Provide bla group in the mesh_info netlink msg
The bridge loop avoidange is the main information for the debugging of of bridge loop detection problems. It is therefore necessary when comparing the bla claim tables. Signed-off-by: Sven Eckelmann <[email protected]> Signed-off-by: Simon Wunderlich <[email protected]> Signed-off-by: Marek Lindner <[email protected]>
1 parent 04f3f5b commit 8dad6f0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

net/batman-adv/netlink.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "main.h"
2020

2121
#include <linux/atomic.h>
22+
#include <linux/byteorder/generic.h>
2223
#include <linux/errno.h>
2324
#include <linux/fs.h>
2425
#include <linux/genetlink.h>
@@ -42,6 +43,7 @@
4243
#include "gateway_client.h"
4344
#include "hard-interface.h"
4445
#include "originator.h"
46+
#include "packet.h"
4547
#include "soft-interface.h"
4648
#include "tp_meter.h"
4749
#include "translation-table.h"
@@ -141,6 +143,12 @@ batadv_netlink_mesh_info_put(struct sk_buff *msg, struct net_device *soft_iface)
141143
(u8)atomic_read(&bat_priv->tt.vn)))
142144
goto out;
143145

146+
#ifdef CONFIG_BATMAN_ADV_BLA
147+
if (nla_put_u16(msg, BATADV_ATTR_BLA_CRC,
148+
ntohs(bat_priv->bla.claim_dest.group)))
149+
goto out;
150+
#endif
151+
144152
primary_if = batadv_primary_if_get_selected(bat_priv);
145153
if (primary_if && primary_if->if_status == BATADV_IF_ACTIVE) {
146154
hard_iface = primary_if->net_dev;

0 commit comments

Comments
 (0)