]> 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)
commit065d87acd4fc9051ade40a1bf1b88d87fe24e7c3
treea824da57cc62888cff0d73203d4d321adf636e0a
parentaffdccdce886254593c4e119393007a297c1b95d
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