Re: [B.A.T.M.A.N.] [PATCH 10/10] batman-adv: add B.A.T.M.A.N. Dump BLA claims via netlink

Sven Eckelmann
2016-04-29T19:15:23Z

[-- Attachment #1.1: Type: text/plain, Size: 2196 bytes --]

=2D-nextPart2258048.UeUabJotxB
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"

On Thursday 28 April 2016 22:37:28 Andrew Lunn wrote:
> Dump the list of bridge loop avoidance claims via the netlink socket.
>
> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
> ---
> include/uapi/linux/batman_adv.h | 6 ++
> net/batman-adv/bridge_loop_avoidance.c | 162
> +++++++++++++++++++++++++++++++++ net/batman-adv/bridge_loop_avoidance.h |
> 9 +-
> net/batman-adv/netlink.c | 7 ++
> 4 files changed, 183 insertions(+), 1 deletion(-)

You can find the missing includes in the attached patch

Kind regards,
Sven
=2D-nextPart2258048.UeUabJotxB
Content-Disposition: attachment; filename="0020-missing-includes-10.patch"
Content-Transfer-Encoding: 7Bit
Content-Type: text/x-patch; charset="UTF-8"; name="0020-missing-includes-10.patch"

From: Sven Eckelmann <sven@narfation.org>
Date: Fri, 29 Apr 2016 21:07:57 +0200
Subject: [PATCH] missing includes 10
=2D--
net/batman-adv/bridge_loop_avoidance.c | 3 +++
net/batman-adv/bridge_loop_avoidance.h | 1 +
2 files changed, 4 insertions(+)

diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c
index b3fab2a..2e40ada 100644
=2D-- a/net/batman-adv/bridge_loop_avoidance.c
+++ b/net/batman-adv/bridge_loop_avoidance.c
@@ -35,6 +35,7 @@
#include <linux/list.h>
#include <linux/lockdep.h>
#include <linux/netdevice.h>
+#include <linux/netlink.h>
#include <linux/rculist.h>
#include <linux/rcupdate.h>
#include <linux/seq_file.h>
@@ -45,6 +46,8 @@
#include <linux/string.h>
#include <linux/workqueue.h>
#include <net/arp.h>
+#include <net/genetlink.h>
+#include <net/netlink.h>
#include <net/sock.h>
#include <uapi/linux/batman_adv.h>

diff --git a/net/batman-adv/bridge_loop_avoidance.h b/net/batman-adv/bridge_loop_avoidance.h
index 2d6acfd..a80b9e9 100644
=2D-- a/net/batman-adv/bridge_loop_avoidance.h
+++ b/net/batman-adv/bridge_loop_avoidance.h
@@ -23,6 +23,7 @@
#include <linux/types.h>

struct net_device;
+struct netlink_callback;
struct seq_file;
struct sk_buff;

=2D-nextPart2258048.UeUabJotxB--
This is a multi-part message in MIME format.

[-- Attachment #1.2: Type: text/plain, Size: 547 bytes --]

On Thursday 28 April 2016 22:37:28 Andrew Lunn wrote:
> Dump the list of bridge loop avoidance claims via the netlink socket.
>
> Signed-off-by: Andrew Lunn <andrew@lunn.ch>
> ---
> include/uapi/linux/batman_adv.h | 6 ++
> net/batman-adv/bridge_loop_avoidance.c | 162
> +++++++++++++++++++++++++++++++++ net/batman-adv/bridge_loop_avoidance.h |
> 9 +-
> net/batman-adv/netlink.c | 7 ++
> 4 files changed, 183 insertions(+), 1 deletion(-)

You can find the missing includes in the attached patch

Kind regards,
Sven

[-- Attachment #1.3: 0020-missing-includes-10.patch --]
[-- Type: text/x-patch, Size: 1232 bytes --]

From: Sven Eckelmann <sven@narfation.org>
Date: Fri, 29 Apr 2016 21:07:57 +0200
Subject: [PATCH] missing includes 10
---
net/batman-adv/bridge_loop_avoidance.c | 3 +++
net/batman-adv/bridge_loop_avoidance.h | 1 +
2 files changed, 4 insertions(+)

diff --git a/net/batman-adv/bridge_loop_avoidance.c b/net/batman-adv/bridge_loop_avoidance.c
index b3fab2a..2e40ada 100644
--- a/net/batman-adv/bridge_loop_avoidance.c
+++ b/net/batman-adv/bridge_loop_avoidance.c
@@ -35,6 +35,7 @@
#include <linux/list.h>
#include <linux/lockdep.h>
#include <linux/netdevice.h>
+#include <linux/netlink.h>
#include <linux/rculist.h>
#include <linux/rcupdate.h>
#include <linux/seq_file.h>
@@ -45,6 +46,8 @@
#include <linux/string.h>
#include <linux/workqueue.h>
#include <net/arp.h>
+#include <net/genetlink.h>
+#include <net/netlink.h>
#include <net/sock.h>
#include <uapi/linux/batman_adv.h>

diff --git a/net/batman-adv/bridge_loop_avoidance.h b/net/batman-adv/bridge_loop_avoidance.h
index 2d6acfd..a80b9e9 100644
--- a/net/batman-adv/bridge_loop_avoidance.h
+++ b/net/batman-adv/bridge_loop_avoidance.h
@@ -23,6 +23,7 @@
#include <linux/types.h>

struct net_device;
+struct netlink_callback;
struct seq_file;
struct sk_buff;