public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] [PATCH v11 02/11] batctl: add B.A.T.M.A.N. Dump BLA claims via netlink
Date: Mon, 18 Jul 2016 12:11:59 +0200	[thread overview]
Message-ID: <1468836728-21890-2-git-send-email-sven@narfation.org> (raw)
In-Reply-To: <6098496.c9QsHxvAun@sven-edge>

From: Andrew Lunn <andrew@lunn.ch>

Dump the list of bridge loop avoidance claims via the netlink socket.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
[sven.eckelmann@open-mesh.com: add policy for attributes, fix includes, fix
soft_iface reference leak]
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
[sw@simonwunderlich.de: fix kerneldoc, fix error reporting]
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
---
 batman_adv.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/batman_adv.h b/batman_adv.h
index a13fc09..96b37ab 100644
--- a/batman_adv.h
+++ b/batman_adv.h
@@ -91,6 +91,11 @@ enum batadv_tt_client_flags {
  * @BATADV_ATTR_BANDWIDTH_UP: Reported uplink bandwidth
  * @BATADV_ATTR_BANDWIDTH_DOWN: Reported downlink bandwidth
  * @BATADV_ATTR_ROUTER: Gateway router MAC address
+ * @BATADV_ATTR_BLA_OWN: Flag indicating own originator
+ * @BATADV_ATTR_BLA_ADDRESS: Bridge loop avoidance claim MAC address
+ * @BATADV_ATTR_BLA_VID: BLA VLAN ID
+ * @BATADV_ATTR_BLA_BACKBONE: BLA gateway originator MAC address
+ * @BATADV_ATTR_BLA_CRC: BLA CRC
  * @__BATADV_ATTR_AFTER_LAST: internal use
  * @NUM_BATADV_ATTR: total number of batadv_nl_attrs available
  * @BATADV_ATTR_MAX: highest attribute number currently defined
@@ -126,6 +131,11 @@ enum batadv_nl_attrs {
 	BATADV_ATTR_BANDWIDTH_UP,
 	BATADV_ATTR_BANDWIDTH_DOWN,
 	BATADV_ATTR_ROUTER,
+	BATADV_ATTR_BLA_OWN,
+	BATADV_ATTR_BLA_ADDRESS,
+	BATADV_ATTR_BLA_VID,
+	BATADV_ATTR_BLA_BACKBONE,
+	BATADV_ATTR_BLA_CRC,
 	/* add attributes above here, update the policy in netlink.c */
 	__BATADV_ATTR_AFTER_LAST,
 	NUM_BATADV_ATTR = __BATADV_ATTR_AFTER_LAST,
@@ -146,6 +156,7 @@ enum batadv_nl_attrs {
  * @BATADV_CMD_GET_ORIGINATORS: Query list of originators
  * @BATADV_CMD_GET_NEIGHBORS: Query list of neighbours
  * @BATADV_CMD_GET_GATEWAYS: Query list of gateways
+ * @BATADV_CMD_GET_BLA_CLAIM: Query list of bridge loop avoidance claims
  * @__BATADV_CMD_AFTER_LAST: internal use
  * @BATADV_CMD_MAX: highest used command number
  */
@@ -161,6 +172,7 @@ enum batadv_nl_commands {
 	BATADV_CMD_GET_ORIGINATORS,
 	BATADV_CMD_GET_NEIGHBORS,
 	BATADV_CMD_GET_GATEWAYS,
+	BATADV_CMD_GET_BLA_CLAIM,
 	/* add new commands above here */
 	__BATADV_CMD_AFTER_LAST,
 	BATADV_CMD_MAX = __BATADV_CMD_AFTER_LAST - 1
-- 
2.8.1


  parent reply	other threads:[~2016-07-18 10:11 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-18 10:11 [B.A.T.M.A.N.] [PATCH v11 00/11] batctl: netns and netlink support Sven Eckelmann
2016-07-18 10:11 ` [B.A.T.M.A.N.] [PATCH v11 01/11] batctl: netlink: add gateway table queries Sven Eckelmann
2016-07-18 10:11 ` Sven Eckelmann [this message]
2016-07-18 10:12 ` [B.A.T.M.A.N.] [PATCH v11 03/11] batctl: add backbone table netlink support Sven Eckelmann
2016-07-18 10:12 ` [B.A.T.M.A.N.] [PATCH v11 04/11] batctl: Use netlink to replace some of debugfs Sven Eckelmann
2016-07-22  9:00   ` Marek Lindner
2016-07-18 10:12 ` [B.A.T.M.A.N.] [PATCH v11 05/11] batctl: add netlink dump function for backbone tables Sven Eckelmann
2016-07-22  9:02   ` Marek Lindner
2016-07-18 10:12 ` [B.A.T.M.A.N.] [PATCH v11 06/11] batctl: add netlink dump support for B.A.T.M.A.N. V gateways Sven Eckelmann
2016-07-22  9:04   ` Marek Lindner
2016-07-18 10:12 ` [B.A.T.M.A.N.] [PATCH v11 07/11] batctl: Import alfred version of debugfs.* Sven Eckelmann
2016-07-22  9:05   ` Marek Lindner
2016-07-18 10:12 ` [B.A.T.M.A.N.] [PATCH v11 08/11] batctl: Split translate_mac from debugfs backend Sven Eckelmann
2016-07-22  9:06   ` Marek Lindner
2016-07-18 10:12 ` [B.A.T.M.A.N.] [PATCH v11 09/11] batctl: Translate mac addresses via netlink Sven Eckelmann
2016-07-22  9:07   ` Marek Lindner
2016-07-18 10:12 ` [B.A.T.M.A.N.] [PATCH v11 10/11] batctl: Document a network namespaces example Sven Eckelmann
2016-07-22  9:10   ` Marek Lindner
2016-07-18 10:12 ` [B.A.T.M.A.N.] [PATCH v11 11/11] batctl: Use debugfs fallback when netlink not supported Sven Eckelmann
2016-07-19 20:09   ` [B.A.T.M.A.N.] [PATCH v12 " Sven Eckelmann
2016-07-22  9:11     ` Marek Lindner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1468836728-21890-2-git-send-email-sven@narfation.org \
    --to=sven@narfation.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox