hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/net/batman-adv/netlink.h
....@@ -1,19 +1,7 @@
11 /* SPDX-License-Identifier: GPL-2.0 */
2
-/* Copyright (C) 2016-2018 B.A.T.M.A.N. contributors:
2
+/* Copyright (C) 2016-2020 B.A.T.M.A.N. contributors:
33 *
44 * Matthias Schiffer
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of version 2 of the GNU General Public
8
- * License as published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful, but
11
- * WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
175 */
186
197 #ifndef _NET_BATMAN_ADV_NETLINK_H_
....@@ -21,10 +9,9 @@
219
2210 #include "main.h"
2311
12
+#include <linux/netlink.h>
2413 #include <linux/types.h>
2514 #include <net/genetlink.h>
26
-
27
-struct nlmsghdr;
2815
2916 void batadv_netlink_register(void);
3017 void batadv_netlink_unregister(void);
....@@ -34,6 +21,12 @@
3421 u8 result, u32 test_time, u64 total_bytes,
3522 u32 cookie);
3623
24
+int batadv_netlink_notify_mesh(struct batadv_priv *bat_priv);
25
+int batadv_netlink_notify_hardif(struct batadv_priv *bat_priv,
26
+ struct batadv_hard_iface *hard_iface);
27
+int batadv_netlink_notify_vlan(struct batadv_priv *bat_priv,
28
+ struct batadv_softif_vlan *vlan);
29
+
3730 extern struct genl_family batadv_netlink_family;
3831
3932 #endif /* _NET_BATMAN_ADV_NETLINK_H_ */