batman-adv: add infrastructure to change routing algorithm at runtime
[deliverable/linux.git] / net / batman-adv / bat_iv_ogm.c
index 3402fa575b4705284cfd195fc00537d3e1f50df0..1847efaaa6fd9d7f5643b9e81d8ddc26dfef4d7b 100644 (file)
@@ -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);
+}
This page took 0.024568 seconds and 5 git commands to generate.