aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_iv_ogm.c
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/bat_iv_ogm.c
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/bat_iv_ogm.c')
-rw-r--r--net/batman-adv/bat_iv_ogm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c
index 3402fa575b47..1847efaaa6fd 100644
--- a/net/batman-adv/bat_iv_ogm.c
+++ b/net/batman-adv/bat_iv_ogm.c
@@ -29,6 +29,7 @@
29#include "gateway_client.h" 29#include "gateway_client.h"
30#include "hard-interface.h" 30#include "hard-interface.h"
31#include "send.h" 31#include "send.h"
32#include "bat_algo.h"
32 33
33void bat_ogm_init(struct hard_iface *hard_iface) 34void bat_ogm_init(struct hard_iface *hard_iface)
34{ 35{
@@ -1172,3 +1173,12 @@ void bat_ogm_receive(struct hard_iface *if_incoming, struct sk_buff *skb)
1172 } while (bat_ogm_aggr_packet(buff_pos, packet_len, 1173 } while (bat_ogm_aggr_packet(buff_pos, packet_len,
1173 batman_ogm_packet->tt_num_changes)); 1174 batman_ogm_packet->tt_num_changes));
1174} 1175}
1176
1177static struct bat_algo_ops batman_iv __read_mostly = {
1178 .name = "BATMAN IV",
1179};
1180
1181int __init bat_iv_init(void)
1182{
1183 return bat_algo_register(&batman_iv);
1184}