blob: 686a60bc9492caacf920e477bc437f7cca154475 [file] [log] [blame]
Sven Eckelmann7db7d9f2017-11-19 15:05:11 +01001/* SPDX-License-Identifier: GPL-2.0 */
Sven Eckelmann68e039f2020-01-01 00:00:01 +01002/* Copyright (C) 2011-2020 B.A.T.M.A.N. contributors:
Marek Lindner1c280472011-11-28 17:40:17 +08003 *
Linus Luessingd6f94d92016-01-16 16:40:09 +08004 * Marek Lindner, Linus Lüssing
Marek Lindner1c280472011-11-28 17:40:17 +08005 */
6
7#ifndef _NET_BATMAN_ADV_BAT_ALGO_H_
8#define _NET_BATMAN_ADV_BAT_ALGO_H_
9
Marek Lindner7db682d2016-05-10 22:31:59 +080010#include "main.h"
Antonio Quartulli0da00352016-01-16 16:40:12 +080011
Sven Eckelmann68a600d2019-05-24 20:11:17 +020012#include <linux/netlink.h>
13#include <linux/seq_file.h>
14#include <linux/skbuff.h>
Sven Eckelmann01d350d2016-05-15 11:07:44 +020015#include <linux/types.h>
16
Sven Eckelmann01d350d2016-05-15 11:07:44 +020017extern char batadv_routing_algo[];
18extern struct list_head batadv_hardif_list;
19
20void batadv_algo_init(void);
21int batadv_algo_register(struct batadv_algo_ops *bat_algo_ops);
22int batadv_algo_select(struct batadv_priv *bat_priv, char *name);
23int batadv_algo_seq_print_text(struct seq_file *seq, void *offset);
Matthias Schiffer07a30612016-07-03 13:31:35 +020024int batadv_algo_dump(struct sk_buff *msg, struct netlink_callback *cb);
Sven Eckelmann01d350d2016-05-15 11:07:44 +020025
Marek Lindner1c280472011-11-28 17:40:17 +080026#endif /* _NET_BATMAN_ADV_BAT_ALGO_H_ */