aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/main.c
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@open-mesh.com>2013-09-02 06:15:04 -0400
committerAntonio Quartulli <antonio@meshcoding.com>2013-10-23 09:33:10 -0400
commita3285a8f20dace536ecc6a2f349150ea1d0bb391 (patch)
treed4cd1de827c780d4226d5f9b2f5018d5edd6a4ed /net/batman-adv/main.c
parent737a2a229774ef983ef783149384bae3e3aa38ac (diff)
batman-adv: add bat_neigh_cmp API function
This new API allows to compare the two neighbours based on the metric avoiding the user to deal with any routing algorithm specific detail Signed-off-by: Antonio Quartulli <antonio@open-mesh.com> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/main.c')
-rw-r--r--net/batman-adv/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/batman-adv/main.c b/net/batman-adv/main.c
index 3159a148c1ac..1f2f1ac67a4c 100644
--- a/net/batman-adv/main.c
+++ b/net/batman-adv/main.c
@@ -501,7 +501,8 @@ int batadv_algo_register(struct batadv_algo_ops *bat_algo_ops)
501 !bat_algo_ops->bat_iface_update_mac || 501 !bat_algo_ops->bat_iface_update_mac ||
502 !bat_algo_ops->bat_primary_iface_set || 502 !bat_algo_ops->bat_primary_iface_set ||
503 !bat_algo_ops->bat_ogm_schedule || 503 !bat_algo_ops->bat_ogm_schedule ||
504 !bat_algo_ops->bat_ogm_emit) { 504 !bat_algo_ops->bat_ogm_emit ||
505 !bat_algo_ops->bat_neigh_cmp) {
505 pr_info("Routing algo '%s' does not implement required ops\n", 506 pr_info("Routing algo '%s' does not implement required ops\n",
506 bat_algo_ops->name); 507 bat_algo_ops->name);
507 ret = -EINVAL; 508 ret = -EINVAL;