batman-adv: register batman ogm receive function during protocol init
authorMarek Lindner <lindner_marek@yahoo.de>
Sun, 4 Mar 2012 08:56:25 +0000 (16:56 +0800)
committerAntonio Quartulli <ordex@autistici.org>
Fri, 11 May 2012 08:08:11 +0000 (10:08 +0200)
commitc3e29312c8c27d403f91522711ce9a290c7571c9
treea366ebef6e2d65ed5fdbec48e38fc3e630a9e367
parentffa995e036bef734ea40cbbccda574d1df3a8a58
batman-adv: register batman ogm receive function during protocol init

The B.A.T.M.A.N. IV OGM receive function still was hard-coded although
it is a routing protocol specific function. This patch takes advantage
of the dynamic packet handler registration to remove the hard-coded
function calls.

Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Acked-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/main.c
net/batman-adv/routing.c
net/batman-adv/routing.h
net/batman-adv/types.h