]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitc43c981e50f47bdd0f1eb400dc30ff13472c7be6
treea824da57cc62888cff0d73203d4d321adf636e0a
parenta3285a8f20dace536ecc6a2f349150ea1d0bb391
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