162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* Copyright (C) B.A.T.M.A.N. contributors: 362306a36Sopenharmony_ci * 462306a36Sopenharmony_ci * Matthias Schiffer 562306a36Sopenharmony_ci */ 662306a36Sopenharmony_ci 762306a36Sopenharmony_ci#ifndef _NET_BATMAN_ADV_NETLINK_H_ 862306a36Sopenharmony_ci#define _NET_BATMAN_ADV_NETLINK_H_ 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#include "main.h" 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci#include <linux/netlink.h> 1362306a36Sopenharmony_ci#include <linux/types.h> 1462306a36Sopenharmony_ci#include <net/genetlink.h> 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_civoid batadv_netlink_register(void); 1762306a36Sopenharmony_civoid batadv_netlink_unregister(void); 1862306a36Sopenharmony_ciint batadv_netlink_get_ifindex(const struct nlmsghdr *nlh, int attrtype); 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ciint batadv_netlink_tpmeter_notify(struct batadv_priv *bat_priv, const u8 *dst, 2162306a36Sopenharmony_ci u8 result, u32 test_time, u64 total_bytes, 2262306a36Sopenharmony_ci u32 cookie); 2362306a36Sopenharmony_ci 2462306a36Sopenharmony_ciextern struct genl_family batadv_netlink_family; 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci#endif /* _NET_BATMAN_ADV_NETLINK_H_ */ 27