diff options
author | Antonio Quartulli <antonio@open-mesh.com> | 2013-04-19 12:07:00 -0400 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2013-05-28 20:44:55 -0400 |
commit | eb2deb6b39b1597577c1635e9ebf319f1ae02213 (patch) | |
tree | 94cea78183fa4e5da3245d8ac07ce8020f08ccc8 /net/batman-adv/bridge_loop_avoidance.h | |
parent | aa27c31265f111ff73d948a5846a3f193376491e (diff) |
batman-adv: change VID semantic in the BLA code
In order to make batman-adv fully vlan aware later, the
semantic used for variables storing the VLAN ID values has
to be changed in order to be adapted to the new one which
will be used batman-adv wide.
In particular, the VID has to be an "_unsigned_ short int"
and its 4 MSB will be used as a flag bitfield, while the
remaining 12 bits are used to store the real VID value
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Acked-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Diffstat (limited to 'net/batman-adv/bridge_loop_avoidance.h')
-rw-r--r-- | net/batman-adv/bridge_loop_avoidance.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/net/batman-adv/bridge_loop_avoidance.h b/net/batman-adv/bridge_loop_avoidance.h index dea2fbc5d98d..4b102e71e5bd 100644 --- a/net/batman-adv/bridge_loop_avoidance.h +++ b/net/batman-adv/bridge_loop_avoidance.h | |||
@@ -21,9 +21,10 @@ | |||
21 | #define _NET_BATMAN_ADV_BLA_H_ | 21 | #define _NET_BATMAN_ADV_BLA_H_ |
22 | 22 | ||
23 | #ifdef CONFIG_BATMAN_ADV_BLA | 23 | #ifdef CONFIG_BATMAN_ADV_BLA |
24 | int batadv_bla_rx(struct batadv_priv *bat_priv, struct sk_buff *skb, short vid, | 24 | int batadv_bla_rx(struct batadv_priv *bat_priv, struct sk_buff *skb, |
25 | bool is_bcast); | 25 | unsigned short vid, bool is_bcast); |
26 | int batadv_bla_tx(struct batadv_priv *bat_priv, struct sk_buff *skb, short vid); | 26 | int batadv_bla_tx(struct batadv_priv *bat_priv, struct sk_buff *skb, |
27 | unsigned short vid); | ||
27 | int batadv_bla_is_backbone_gw(struct sk_buff *skb, | 28 | int batadv_bla_is_backbone_gw(struct sk_buff *skb, |
28 | struct batadv_orig_node *orig_node, int hdr_size); | 29 | struct batadv_orig_node *orig_node, int hdr_size); |
29 | int batadv_bla_claim_table_seq_print_text(struct seq_file *seq, void *offset); | 30 | int batadv_bla_claim_table_seq_print_text(struct seq_file *seq, void *offset); |
@@ -42,13 +43,14 @@ void batadv_bla_free(struct batadv_priv *bat_priv); | |||
42 | #else /* ifdef CONFIG_BATMAN_ADV_BLA */ | 43 | #else /* ifdef CONFIG_BATMAN_ADV_BLA */ |
43 | 44 | ||
44 | static inline int batadv_bla_rx(struct batadv_priv *bat_priv, | 45 | static inline int batadv_bla_rx(struct batadv_priv *bat_priv, |
45 | struct sk_buff *skb, short vid, bool is_bcast) | 46 | struct sk_buff *skb, unsigned short vid, |
47 | bool is_bcast) | ||
46 | { | 48 | { |
47 | return 0; | 49 | return 0; |
48 | } | 50 | } |
49 | 51 | ||
50 | static inline int batadv_bla_tx(struct batadv_priv *bat_priv, | 52 | static inline int batadv_bla_tx(struct batadv_priv *bat_priv, |
51 | struct sk_buff *skb, short vid) | 53 | struct sk_buff *skb, unsigned short vid) |
52 | { | 54 | { |
53 | return 0; | 55 | return 0; |
54 | } | 56 | } |