2021-05-26 19:09:36 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2021-10-02 16:09:28 +00:00
|
|
|
/* Copyright (C) B.A.T.M.A.N. contributors:
|
2021-05-26 19:09:36 +00: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 16:09:28 +00:00
|
|
|
struct batadv_algo_ops *batadv_algo_get(const char *name);
|
2021-05-26 19:09:36 +00:00
|
|
|
int batadv_algo_register(struct batadv_algo_ops *bat_algo_ops);
|
2021-10-02 16:09:28 +00:00
|
|
|
int batadv_algo_select(struct batadv_priv *bat_priv, const char *name);
|
2021-05-26 19:09:36 +00:00
|
|
|
int batadv_algo_dump(struct sk_buff *msg, struct netlink_callback *cb);
|
|
|
|
|
|
|
|
#endif /* _NET_BATMAN_ADV_BAT_ALGO_H_ */
|