diff options
author | Antonio Quartulli <antonio@open-mesh.com> | 2013-06-04 06:11:39 -0400 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2013-10-19 09:11:21 -0400 |
commit | c018ad3de61a1dc4194879a53e5559e094aa7b1a (patch) | |
tree | 4edb9c156b618dae46d38249a5c817e0d1f1e2b0 /net/batman-adv/translation-table.h | |
parent | bc58eeef744df93e141678ef44452f0869cd563d (diff) |
batman-adv: add the VLAN ID attribute to the TT entry
To make the translation table code VLAN-aware, each entry
must carry the VLAN ID which it belongs to. This patch adds
such attribute to the related TT structures.
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net/batman-adv/translation-table.h')
-rw-r--r-- | net/batman-adv/translation-table.h | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/net/batman-adv/translation-table.h b/net/batman-adv/translation-table.h index 015d8b9e63b9..1d9506d85bee 100644 --- a/net/batman-adv/translation-table.h +++ b/net/batman-adv/translation-table.h | |||
@@ -22,10 +22,10 @@ | |||
22 | 22 | ||
23 | int batadv_tt_init(struct batadv_priv *bat_priv); | 23 | int batadv_tt_init(struct batadv_priv *bat_priv); |
24 | void batadv_tt_local_add(struct net_device *soft_iface, const uint8_t *addr, | 24 | void batadv_tt_local_add(struct net_device *soft_iface, const uint8_t *addr, |
25 | int ifindex); | 25 | unsigned short vid, int ifindex); |
26 | uint16_t batadv_tt_local_remove(struct batadv_priv *bat_priv, | 26 | uint16_t batadv_tt_local_remove(struct batadv_priv *bat_priv, |
27 | const uint8_t *addr, const char *message, | 27 | const uint8_t *addr, unsigned short vid, |
28 | bool roaming); | 28 | const char *message, bool roaming); |
29 | int batadv_tt_local_seq_print_text(struct seq_file *seq, void *offset); | 29 | int batadv_tt_local_seq_print_text(struct seq_file *seq, void *offset); |
30 | int batadv_tt_global_seq_print_text(struct seq_file *seq, void *offset); | 30 | int batadv_tt_global_seq_print_text(struct seq_file *seq, void *offset); |
31 | void batadv_tt_global_del_orig(struct batadv_priv *bat_priv, | 31 | void batadv_tt_global_del_orig(struct batadv_priv *bat_priv, |
@@ -33,18 +33,21 @@ void batadv_tt_global_del_orig(struct batadv_priv *bat_priv, | |||
33 | const char *message); | 33 | const char *message); |
34 | struct batadv_orig_node *batadv_transtable_search(struct batadv_priv *bat_priv, | 34 | struct batadv_orig_node *batadv_transtable_search(struct batadv_priv *bat_priv, |
35 | const uint8_t *src, | 35 | const uint8_t *src, |
36 | const uint8_t *addr); | 36 | const uint8_t *addr, |
37 | unsigned short vid); | ||
37 | void batadv_tt_free(struct batadv_priv *bat_priv); | 38 | void batadv_tt_free(struct batadv_priv *bat_priv); |
38 | bool batadv_is_my_client(struct batadv_priv *bat_priv, const uint8_t *addr); | 39 | bool batadv_is_my_client(struct batadv_priv *bat_priv, const uint8_t *addr, |
40 | unsigned short vid); | ||
39 | bool batadv_is_ap_isolated(struct batadv_priv *bat_priv, uint8_t *src, | 41 | bool batadv_is_ap_isolated(struct batadv_priv *bat_priv, uint8_t *src, |
40 | uint8_t *dst); | 42 | uint8_t *dst); |
41 | void batadv_tt_local_commit_changes(struct batadv_priv *bat_priv); | 43 | void batadv_tt_local_commit_changes(struct batadv_priv *bat_priv); |
42 | bool batadv_tt_global_client_is_roaming(struct batadv_priv *bat_priv, | 44 | bool batadv_tt_global_client_is_roaming(struct batadv_priv *bat_priv, |
43 | uint8_t *addr); | 45 | uint8_t *addr, unsigned short vid); |
44 | bool batadv_tt_local_client_is_roaming(struct batadv_priv *bat_priv, | 46 | bool batadv_tt_local_client_is_roaming(struct batadv_priv *bat_priv, |
45 | uint8_t *addr); | 47 | uint8_t *addr, unsigned short vid); |
46 | bool batadv_tt_add_temporary_global_entry(struct batadv_priv *bat_priv, | 48 | bool batadv_tt_add_temporary_global_entry(struct batadv_priv *bat_priv, |
47 | struct batadv_orig_node *orig_node, | 49 | struct batadv_orig_node *orig_node, |
48 | const unsigned char *addr); | 50 | const unsigned char *addr, |
51 | unsigned short vid); | ||
49 | 52 | ||
50 | #endif /* _NET_BATMAN_ADV_TRANSLATION_TABLE_H_ */ | 53 | #endif /* _NET_BATMAN_ADV_TRANSLATION_TABLE_H_ */ |