]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: provide orig_node routing API
authorAntonio Quartulli <antonio@open-mesh.com>
Tue, 3 Sep 2013 09:10:23 +0000 (11:10 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Wed, 23 Oct 2013 15:03:21 +0000 (17:03 +0200)
commite8ea68ff452d58b6a049187becfee4600a1d3cc8
tree541340ef841baf985b4f14268ebd9a7536df2a07
parent28b59b1d1856d9e71e4353db6fbaa609a763ce75
batman-adv: provide orig_node routing API

Some operations executed on an orig_node depends on the
current routing algorithm being used. To easily make this
mechanism routing algorithm agnostic add a orig_node
specific API that each algorithm can populate with its own
routines.

Such routines are then invoked by the code when needed,
without knowing which routing algorithm is currently in use

With this patch 3 API functions are added:
- orig_free (to free routing depending internal structs)
- orig_add_if (to change the inner state of an orig_node
  when a new hard interface is added)
- orig_del_if (to change the inner state of an orig_node
  when an hard interface is removed)

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/originator.c
net/batman-adv/types.h