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/main.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/main.h')
-rw-r--r-- | net/batman-adv/main.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index ff55dccbf6e4..2774d7f4ee0b 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h | |||
@@ -169,14 +169,6 @@ enum batadv_uev_type { | |||
169 | #include <linux/seq_file.h> | 169 | #include <linux/seq_file.h> |
170 | #include "types.h" | 170 | #include "types.h" |
171 | 171 | ||
172 | /** | ||
173 | * batadv_vlan_flags - flags for the four MSB of any vlan ID field | ||
174 | * @BATADV_VLAN_HAS_TAG: whether the field contains a valid vlan tag or not | ||
175 | */ | ||
176 | enum batadv_vlan_flags { | ||
177 | BATADV_VLAN_HAS_TAG = BIT(15), | ||
178 | }; | ||
179 | |||
180 | #define BATADV_PRINT_VID(vid) (vid & BATADV_VLAN_HAS_TAG ? \ | 172 | #define BATADV_PRINT_VID(vid) (vid & BATADV_VLAN_HAS_TAG ? \ |
181 | (int)(vid & VLAN_VID_MASK) : -1) | 173 | (int)(vid & VLAN_VID_MASK) : -1) |
182 | 174 | ||
@@ -368,5 +360,6 @@ int batadv_tvlv_containers_process(struct batadv_priv *bat_priv, | |||
368 | void batadv_tvlv_unicast_send(struct batadv_priv *bat_priv, uint8_t *src, | 360 | void batadv_tvlv_unicast_send(struct batadv_priv *bat_priv, uint8_t *src, |
369 | uint8_t *dst, uint8_t type, uint8_t version, | 361 | uint8_t *dst, uint8_t type, uint8_t version, |
370 | void *tvlv_value, uint16_t tvlv_value_len); | 362 | void *tvlv_value, uint16_t tvlv_value_len); |
363 | unsigned short batadv_get_vid(struct sk_buff *skb, size_t header_len); | ||
371 | 364 | ||
372 | #endif /* _NET_BATMAN_ADV_MAIN_H_ */ | 365 | #endif /* _NET_BATMAN_ADV_MAIN_H_ */ |