diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2012-02-07 04:20:45 -0500 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-04-18 03:53:58 -0400 |
commit | c2aca02235c014de57b03aa725d9b094f7a87cac (patch) | |
tree | f1ebbe3a48d5db44a3d71ccdc31a5c9ae99a8585 /net/batman-adv | |
parent | 8140625e30523da3eb76cdab837ba7aa9509029c (diff) |
batman-adv: refactoring API: find generalized name for bat_ogm_init callback
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv')
-rw-r--r-- | net/batman-adv/bat_iv_ogm.c | 4 | ||||
-rw-r--r-- | net/batman-adv/hard-interface.c | 2 | ||||
-rw-r--r-- | net/batman-adv/main.c | 2 | ||||
-rw-r--r-- | net/batman-adv/types.h | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c index fab1071f601e..117b8314e8c7 100644 --- a/net/batman-adv/bat_iv_ogm.c +++ b/net/batman-adv/bat_iv_ogm.c | |||
@@ -30,7 +30,7 @@ | |||
30 | #include "send.h" | 30 | #include "send.h" |
31 | #include "bat_algo.h" | 31 | #include "bat_algo.h" |
32 | 32 | ||
33 | static void bat_iv_ogm_init(struct hard_iface *hard_iface) | 33 | static void bat_iv_ogm_iface_enable(struct hard_iface *hard_iface) |
34 | { | 34 | { |
35 | struct batman_ogm_packet *batman_ogm_packet; | 35 | struct batman_ogm_packet *batman_ogm_packet; |
36 | 36 | ||
@@ -1169,7 +1169,7 @@ static void bat_iv_ogm_receive(struct hard_iface *if_incoming, | |||
1169 | 1169 | ||
1170 | static struct bat_algo_ops batman_iv __read_mostly = { | 1170 | static struct bat_algo_ops batman_iv __read_mostly = { |
1171 | .name = "BATMAN IV", | 1171 | .name = "BATMAN IV", |
1172 | .bat_ogm_init = bat_iv_ogm_init, | 1172 | .bat_iface_enable = bat_iv_ogm_iface_enable, |
1173 | .bat_ogm_init_primary = bat_iv_ogm_init_primary, | 1173 | .bat_ogm_init_primary = bat_iv_ogm_init_primary, |
1174 | .bat_ogm_update_mac = bat_iv_ogm_update_mac, | 1174 | .bat_ogm_update_mac = bat_iv_ogm_update_mac, |
1175 | .bat_ogm_schedule = bat_iv_ogm_schedule, | 1175 | .bat_ogm_schedule = bat_iv_ogm_schedule, |
diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c index f15200760d65..4d9b85ddd93a 100644 --- a/net/batman-adv/hard-interface.c +++ b/net/batman-adv/hard-interface.c | |||
@@ -312,7 +312,7 @@ int hardif_enable_interface(struct hard_iface *hard_iface, | |||
312 | hard_iface->soft_iface = soft_iface; | 312 | hard_iface->soft_iface = soft_iface; |
313 | bat_priv = netdev_priv(hard_iface->soft_iface); | 313 | bat_priv = netdev_priv(hard_iface->soft_iface); |
314 | 314 | ||
315 | bat_priv->bat_algo_ops->bat_ogm_init(hard_iface); | 315 | bat_priv->bat_algo_ops->bat_iface_enable(hard_iface); |
316 | 316 | ||
317 | if (!hard_iface->packet_buff) { | 317 | if (!hard_iface->packet_buff) { |
318 | bat_err(hard_iface->soft_iface, | 318 | bat_err(hard_iface->soft_iface, |
diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c index e67ca96285b3..ca8f39547105 100644 --- a/net/batman-adv/main.c +++ b/net/batman-adv/main.c | |||
@@ -208,7 +208,7 @@ int bat_algo_register(struct bat_algo_ops *bat_algo_ops) | |||
208 | } | 208 | } |
209 | 209 | ||
210 | /* all algorithms must implement all ops (for now) */ | 210 | /* all algorithms must implement all ops (for now) */ |
211 | if (!bat_algo_ops->bat_ogm_init || | 211 | if (!bat_algo_ops->bat_iface_enable || |
212 | !bat_algo_ops->bat_ogm_init_primary || | 212 | !bat_algo_ops->bat_ogm_init_primary || |
213 | !bat_algo_ops->bat_ogm_update_mac || | 213 | !bat_algo_ops->bat_ogm_update_mac || |
214 | !bat_algo_ops->bat_ogm_schedule || | 214 | !bat_algo_ops->bat_ogm_schedule || |
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h index a5b1a6333def..4b9224829a6c 100644 --- a/net/batman-adv/types.h +++ b/net/batman-adv/types.h | |||
@@ -377,8 +377,8 @@ struct recvlist_node { | |||
377 | struct bat_algo_ops { | 377 | struct bat_algo_ops { |
378 | struct hlist_node list; | 378 | struct hlist_node list; |
379 | char *name; | 379 | char *name; |
380 | /* init OGM when hard-interface is enabled */ | 380 | /* init routing info when hard-interface is enabled */ |
381 | void (*bat_ogm_init)(struct hard_iface *hard_iface); | 381 | void (*bat_iface_enable)(struct hard_iface *hard_iface); |
382 | /* init primary OGM when primary interface is selected */ | 382 | /* init primary OGM when primary interface is selected */ |
383 | void (*bat_ogm_init_primary)(struct hard_iface *hard_iface); | 383 | void (*bat_ogm_init_primary)(struct hard_iface *hard_iface); |
384 | /* init mac addresses of the OGM belonging to this hard-interface */ | 384 | /* init mac addresses of the OGM belonging to this hard-interface */ |