batman-adv: use more descriptive var names for is_similar_or_better

neigh1 and neigh2 is not really helpful when looking at a code which needs
to judge the metric similarity between a candidate and a reference. This
already caused an implementation error in the B.A.T.M.A.N. V bonding code.
Simply using "reference" and "candidate" for the neighbors is a lot more
descriptive and makes it easier to understand the code.

Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
Sven Eckelmann 2026-08-06 20:54:55 +02:00
commit 776c26254d
No known key found for this signature in database
GPG key ID: 4D0F772BD314F5CB
3 changed files with 40 additions and 39 deletions