diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2012-03-04 03:56:25 -0500 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-05-11 04:08:11 -0400 |
commit | c3e29312c8c27d403f91522711ce9a290c7571c9 (patch) | |
tree | a366ebef6e2d65ed5fdbec48e38fc3e630a9e367 /net/batman-adv/routing.h | |
parent | ffa995e036bef734ea40cbbccda574d1df3a8a58 (diff) |
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>
Diffstat (limited to 'net/batman-adv/routing.h')
-rw-r--r-- | net/batman-adv/routing.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/batman-adv/routing.h b/net/batman-adv/routing.h index 3d729cb17113..d6bbbebb6567 100644 --- a/net/batman-adv/routing.h +++ b/net/batman-adv/routing.h | |||
@@ -23,6 +23,9 @@ | |||
23 | #define _NET_BATMAN_ADV_ROUTING_H_ | 23 | #define _NET_BATMAN_ADV_ROUTING_H_ |
24 | 24 | ||
25 | void slide_own_bcast_window(struct hard_iface *hard_iface); | 25 | void slide_own_bcast_window(struct hard_iface *hard_iface); |
26 | bool check_management_packet(struct sk_buff *skb, | ||
27 | struct hard_iface *hard_iface, | ||
28 | int header_len); | ||
26 | void update_route(struct bat_priv *bat_priv, struct orig_node *orig_node, | 29 | void update_route(struct bat_priv *bat_priv, struct orig_node *orig_node, |
27 | struct neigh_node *neigh_node); | 30 | struct neigh_node *neigh_node); |
28 | int recv_icmp_packet(struct sk_buff *skb, struct hard_iface *recv_if); | 31 | int recv_icmp_packet(struct sk_buff *skb, struct hard_iface *recv_if); |
@@ -30,7 +33,6 @@ int recv_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if); | |||
30 | int recv_ucast_frag_packet(struct sk_buff *skb, struct hard_iface *recv_if); | 33 | int recv_ucast_frag_packet(struct sk_buff *skb, struct hard_iface *recv_if); |
31 | int recv_bcast_packet(struct sk_buff *skb, struct hard_iface *recv_if); | 34 | int recv_bcast_packet(struct sk_buff *skb, struct hard_iface *recv_if); |
32 | int recv_vis_packet(struct sk_buff *skb, struct hard_iface *recv_if); | 35 | int recv_vis_packet(struct sk_buff *skb, struct hard_iface *recv_if); |
33 | int recv_bat_ogm_packet(struct sk_buff *skb, struct hard_iface *recv_if); | ||
34 | int recv_tt_query(struct sk_buff *skb, struct hard_iface *recv_if); | 36 | int recv_tt_query(struct sk_buff *skb, struct hard_iface *recv_if); |
35 | int recv_roam_adv(struct sk_buff *skb, struct hard_iface *recv_if); | 37 | int recv_roam_adv(struct sk_buff *skb, struct hard_iface *recv_if); |
36 | struct neigh_node *find_router(struct bat_priv *bat_priv, | 38 | struct neigh_node *find_router(struct bat_priv *bat_priv, |