3
0
mirror of https://github.com/Qortal/Brooklyn.git synced 2025-02-18 21:25:52 +00:00
Brooklyn/net/batman-adv/bat_algo.h

26 lines
713 B
C
Raw Normal View History

2021-05-27 00:09:36 +05:00
/* SPDX-License-Identifier: GPL-2.0 */
2021-10-02 21:09:28 +05:00
/* Copyright (C) B.A.T.M.A.N. contributors:
2021-05-27 00:09:36 +05:00
*
* Marek Lindner, Linus Lüssing
*/
#ifndef _NET_BATMAN_ADV_BAT_ALGO_H_
#define _NET_BATMAN_ADV_BAT_ALGO_H_
#include "main.h"
#include <linux/netlink.h>
#include <linux/skbuff.h>
#include <linux/types.h>
extern char batadv_routing_algo[];
extern struct list_head batadv_hardif_list;
void batadv_algo_init(void);
2021-10-02 21:09:28 +05:00
struct batadv_algo_ops *batadv_algo_get(const char *name);
2021-05-27 00:09:36 +05:00
int batadv_algo_register(struct batadv_algo_ops *bat_algo_ops);
2021-10-02 21:09:28 +05:00
int batadv_algo_select(struct batadv_priv *bat_priv, const char *name);
2021-05-27 00:09:36 +05:00
int batadv_algo_dump(struct sk_buff *msg, struct netlink_callback *cb);
#endif /* _NET_BATMAN_ADV_BAT_ALGO_H_ */