summaryrefslogtreecommitdiffstats
path: root/net/batman-adv/bat_iv_ogm.c
diff options
context:
space:
mode:
authorMarek Lindner <lindner_marek@yahoo.de>2011-11-28 17:40:17 +0800
committerMarek Lindner <lindner_marek@yahoo.de>2012-02-17 02:50:20 +0800
commit1c280471b013e26c833fc86acc231c73442cfa21 (patch)
treeff48395664f514b1c8f2f14e78c5b3c4da653702 /net/batman-adv/bat_iv_ogm.c
parent6e242f9037f8a82ce2608c20a5460b670b2d5ff4 (diff)
downloadblackbird-op-linux-1c280471b013e26c833fc86acc231c73442cfa21.tar.gz
blackbird-op-linux-1c280471b013e26c833fc86acc231c73442cfa21.zip
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 @@
#include "gateway_client.h"
#include "hard-interface.h"
#include "send.h"
+#include "bat_algo.h"
void bat_ogm_init(struct hard_iface *hard_iface)
{
@@ -1172,3 +1173,12 @@ void bat_ogm_receive(struct hard_iface *if_incoming, struct sk_buff *skb)
} while (bat_ogm_aggr_packet(buff_pos, packet_len,
batman_ogm_packet->tt_num_changes));
}
+
+static struct bat_algo_ops batman_iv __read_mostly = {
+ .name = "BATMAN IV",
+};
+
+int __init bat_iv_init(void)
+{
+ return bat_algo_register(&batman_iv);
+}
OpenPOWER on IntegriCloud