aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/main.h
diff options
context:
space:
mode:
authorMarek Lindner <lindner_marek@yahoo.de>2011-11-28 04:40:17 -0500
committerMarek Lindner <lindner_marek@yahoo.de>2012-02-16 13:50:20 -0500
commit1c280471b013e26c833fc86acc231c73442cfa21 (patch)
treeff48395664f514b1c8f2f14e78c5b3c4da653702 /net/batman-adv/main.h
parent6e242f9037f8a82ce2608c20a5460b670b2d5ff4 (diff)
batman-adv: add infrastructure to change routing algorithm at runtime
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r--net/batman-adv/main.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h
index f9c659b3f3a9..586afafb1b67 100644
--- a/net/batman-adv/main.h
+++ b/net/batman-adv/main.h
@@ -147,6 +147,7 @@ enum dbg_level {
147#include <linux/seq_file.h> 147#include <linux/seq_file.h>
148#include "types.h" 148#include "types.h"
149 149
150extern char bat_routing_algo[];
150extern struct list_head hardif_list; 151extern struct list_head hardif_list;
151 152
152extern unsigned char broadcast_addr[]; 153extern unsigned char broadcast_addr[];
@@ -157,6 +158,9 @@ void mesh_free(struct net_device *soft_iface);
157void inc_module_count(void); 158void inc_module_count(void);
158void dec_module_count(void); 159void dec_module_count(void);
159int is_my_mac(const uint8_t *addr); 160int is_my_mac(const uint8_t *addr);
161int bat_algo_register(struct bat_algo_ops *bat_algo_ops);
162int bat_algo_select(struct bat_priv *bat_priv, char *name);
163int bat_algo_seq_print_text(struct seq_file *seq, void *offset);
160 164
161#ifdef CONFIG_BATMAN_ADV_DEBUG 165#ifdef CONFIG_BATMAN_ADV_DEBUG
162int debug_log(struct bat_priv *bat_priv, const char *fmt, ...) __printf(2, 3); 166int debug_log(struct bat_priv *bat_priv, const char *fmt, ...) __printf(2, 3);