summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/sysfs.c
diff options
context:
space:
mode:
authorSven Eckelmann2017-12-21 10:17:41 +0100
committerDavid S. Miller2017-12-21 21:35:53 +0100
commitfec149f5d3234c037ec761d1db4cc8c0550e9964 (patch)
tree1305e39ca26f665f14ecfdc230c6d54f1e17d769 /net/batman-adv/sysfs.c
parentbatman-adv: Remove kernel fixed width types in packet.h (diff)
downloadkernel-qcow2-linux-fec149f5d3234c037ec761d1db4cc8c0550e9964.tar.gz
kernel-qcow2-linux-fec149f5d3234c037ec761d1db4cc8c0550e9964.tar.xz
kernel-qcow2-linux-fec149f5d3234c037ec761d1db4cc8c0550e9964.zip
batman-adv: Convert packet.h to uapi header
The header file is used by different userspace programs to inject packets or to decode sniffed packets. It should therefore be available to them as userspace header. Also other components in the kernel (like the flow dissector) require access to the packet definitions to be able to decode ETH_P_BATMAN ethernet packets. Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv/sysfs.c')
-rw-r--r--net/batman-adv/sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/sysfs.c b/net/batman-adv/sysfs.c
index 56fb42551453..c1578fa0b952 100644
--- a/net/batman-adv/sysfs.c
+++ b/net/batman-adv/sysfs.c
@@ -39,6 +39,7 @@
#include <linux/string.h>
#include <linux/stringify.h>
#include <linux/workqueue.h>
+#include <uapi/linux/batadv_packet.h>
#include "bridge_loop_avoidance.h"
#include "distributed-arp-table.h"
@@ -47,7 +48,6 @@
#include "hard-interface.h"
#include "log.h"
#include "network-coding.h"
-#include "packet.h"
#include "soft-interface.h"
static struct net_device *batadv_kobj_to_netdev(struct kobject *obj)