diff options
author | Simon Wunderlich <simon@open-mesh.com> | 2013-11-13 13:14:46 -0500 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2014-01-12 08:41:10 -0500 |
commit | 89652331c00f43574515059ecbf262d26d885717 (patch) | |
tree | 907828c7834896ef46ad868466cbeb4b87b58583 /net/batman-adv/originator.h | |
parent | f6c8b71173ad50e48e6569a1ef5d7d4486268b4d (diff) |
batman-adv: split tq information in neigh_node struct
For the network wide multi interface optimization it is required to save
metrics per outgoing interface in one neighbor. Therefore a new type is
introduced to keep interface-specific information. This also requires
some changes in access and list management.
The compare and equiv_or_better API calls are changed to take the
outgoing interface into consideration.
Signed-off-by: Simon Wunderlich <simon@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Diffstat (limited to 'net/batman-adv/originator.h')
-rw-r--r-- | net/batman-adv/originator.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/batman-adv/originator.h b/net/batman-adv/originator.h index 99ed3c61e4f9..29fa4c428b59 100644 --- a/net/batman-adv/originator.h +++ b/net/batman-adv/originator.h | |||
@@ -35,6 +35,13 @@ batadv_neigh_node_new(struct batadv_hard_iface *hard_iface, | |||
35 | void batadv_neigh_node_free_ref(struct batadv_neigh_node *neigh_node); | 35 | void batadv_neigh_node_free_ref(struct batadv_neigh_node *neigh_node); |
36 | struct batadv_neigh_node * | 36 | struct batadv_neigh_node * |
37 | batadv_orig_node_get_router(struct batadv_orig_node *orig_node); | 37 | batadv_orig_node_get_router(struct batadv_orig_node *orig_node); |
38 | struct batadv_neigh_ifinfo * | ||
39 | batadv_neigh_ifinfo_new(struct batadv_neigh_node *neigh, | ||
40 | struct batadv_hard_iface *if_outgoing); | ||
41 | struct batadv_neigh_ifinfo * | ||
42 | batadv_neigh_ifinfo_get(struct batadv_neigh_node *neigh, | ||
43 | struct batadv_hard_iface *if_outgoing); | ||
44 | void batadv_neigh_ifinfo_free_ref(struct batadv_neigh_ifinfo *neigh_ifinfo); | ||
38 | int batadv_orig_seq_print_text(struct seq_file *seq, void *offset); | 45 | int batadv_orig_seq_print_text(struct seq_file *seq, void *offset); |
39 | int batadv_orig_hash_add_if(struct batadv_hard_iface *hard_iface, | 46 | int batadv_orig_hash_add_if(struct batadv_hard_iface *hard_iface, |
40 | int max_if_num); | 47 | int max_if_num); |