Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 2 | /* Copyright (C) 2016-2019 B.A.T.M.A.N. contributors: |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 3 | * |
| 4 | * Matthias Schiffer |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _NET_BATMAN_ADV_NETLINK_H_ |
| 8 | #define _NET_BATMAN_ADV_NETLINK_H_ |
| 9 | |
| 10 | #include "main.h" |
| 11 | |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 12 | #include <linux/netlink.h> |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 13 | #include <linux/types.h> |
| 14 | #include <net/genetlink.h> |
| 15 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 16 | void batadv_netlink_register(void); |
| 17 | void batadv_netlink_unregister(void); |
| 18 | int batadv_netlink_get_ifindex(const struct nlmsghdr *nlh, int attrtype); |
| 19 | |
| 20 | int batadv_netlink_tpmeter_notify(struct batadv_priv *bat_priv, const u8 *dst, |
| 21 | u8 result, u32 test_time, u64 total_bytes, |
| 22 | u32 cookie); |
| 23 | |
David Brazdil | 0f672f6 | 2019-12-10 10:32:29 +0000 | [diff] [blame^] | 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 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 30 | extern struct genl_family batadv_netlink_family; |
| 31 | |
| 32 | #endif /* _NET_BATMAN_ADV_NETLINK_H_ */ |