From: "Linus Lüssing" <linus.luessing@c0d3.blue>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: [B.A.T.M.A.N.] [PATCH v3 1/4] batctl: add DAT cache netlink support
Date: Tue, 13 Mar 2018 11:43:55 +0100 [thread overview]
Message-ID: <20180313104358.19895-2-linus.luessing@c0d3.blue> (raw)
In-Reply-To: <20180313104358.19895-1-linus.luessing@c0d3.blue>
Dump the list of DAT cache entries via the netlink socket.
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
---
batman_adv.h | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/batman_adv.h b/batman_adv.h
index 56ae289..95ab5db 100644
--- a/batman_adv.h
+++ b/batman_adv.h
@@ -272,6 +272,21 @@ enum batadv_nl_attrs {
*/
BATADV_ATTR_BLA_CRC,
+ /**
+ * @BATADV_ATTR_DAT_CACHE_IP4ADDRESS: Client IPv4 address
+ */
+ BATADV_ATTR_DAT_CACHE_IP4ADDRESS,
+
+ /**
+ * @BATADV_ATTR_DAT_CACHE_HWADDRESS: Client MAC address
+ */
+ BATADV_ATTR_DAT_CACHE_HWADDRESS,
+
+ /**
+ * @BATADV_ATTR_DAT_CACHE_VID: VLAN ID
+ */
+ BATADV_ATTR_DAT_CACHE_VID,
+
/* add attributes above here, update the policy in netlink.c */
/**
@@ -361,6 +376,11 @@ enum batadv_nl_commands {
*/
BATADV_CMD_GET_BLA_BACKBONE,
+ /**
+ * @BATADV_CMD_GET_DAT_CACHE: Query list of DAT cache entries
+ */
+ BATADV_CMD_GET_DAT_CACHE,
+
/* add new commands above here */
/**
--
2.11.0
next prev parent reply other threads:[~2018-03-13 10:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-13 10:43 [B.A.T.M.A.N.] [PATCH v3 0/4] batctl: netlink support for DAT and MCAST Linus Lüssing
2018-03-13 10:43 ` Linus Lüssing [this message]
2018-03-13 10:43 ` [B.A.T.M.A.N.] [PATCH v3 2/4] batctl: add netlink dump function for DAT cache table Linus Lüssing
2018-03-13 10:43 ` [B.A.T.M.A.N.] [PATCH v3 3/4] batctl: add multicast flags netlink support Linus Lüssing
2018-03-13 10:43 ` [B.A.T.M.A.N.] [PATCH v3 4/4] batctl: add netlink dump function for multicast flags table Linus Lüssing
2018-03-14 10:25 ` [B.A.T.M.A.N.] [PATCH v3 0/4] batctl: netlink support for DAT and MCAST Sven Eckelmann
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=20180313104358.19895-2-linus.luessing@c0d3.blue \
--to=linus.luessing@c0d3.blue \
--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