]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: add bat_neigh_is_equiv_or_better API function
authorAntonio Quartulli <antonio@open-mesh.com>
Mon, 2 Sep 2013 10:15:05 +0000 (12:15 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Wed, 23 Oct 2013 13:33:11 +0000 (15:33 +0200)
commit89c745821c566773293e6000c130e4a02411233a
treea824da57cc62888cff0d73203d4d321adf636e0a
parenteeed68b4b12ce211702bd0f7391fcff9c6154edb
batman-adv: add bat_neigh_is_equiv_or_better API function

Each routing protocol has its own metric semantic and
therefore is the protocol itself the only component able to
compare two metrics to check their "similarity".

This new API allows each routing protocol to implement its
own logic and make the external code protocol agnostic.

Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/bat_iv_ogm.c
net/batman-adv/main.c
net/batman-adv/main.h
net/batman-adv/types.h