summaryrefslogtreecommitdiff
path: root/net/batman-adv
diff options
context:
space:
mode:
authorMarek Lindner <lindner_marek@yahoo.de>2012-12-25 17:03:21 +0800
committerAntonio Quartulli <ordex@autistici.org>2013-01-19 21:18:10 +0800
commit2006fea82085cfd9ddc92b23ef1ea8d57e065c61 (patch)
tree8e70cb5189bde2116a956916516dd8b16b723b70 /net/batman-adv
parent0abf5d8117dc864135eda5adda12640e16ed0cb8 (diff)
downloadlwn-2006fea82085cfd9ddc92b23ef1ea8d57e065c61.tar.gz
lwn-2006fea82085cfd9ddc92b23ef1ea8d57e065c61.zip
batman-adv: group tt type definitions together
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/types.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/net/batman-adv/types.h b/net/batman-adv/types.h
index db3fb252432d..9a66115bd9c5 100644
--- a/net/batman-adv/types.h
+++ b/net/batman-adv/types.h
@@ -339,6 +339,31 @@ struct batadv_socket_packet {
struct batadv_icmp_packet_rr icmp_packet;
};
+#ifdef CONFIG_BATMAN_ADV_BLA
+struct batadv_backbone_gw {
+ uint8_t orig[ETH_ALEN];
+ short vid; /* used VLAN ID */
+ struct hlist_node hash_entry;
+ struct batadv_priv *bat_priv;
+ unsigned long lasttime; /* last time we heard of this backbone gw */
+ atomic_t wait_periods;
+ atomic_t request_sent;
+ atomic_t refcount;
+ struct rcu_head rcu;
+ uint16_t crc; /* crc checksum over all claims */
+};
+
+struct batadv_claim {
+ uint8_t addr[ETH_ALEN];
+ short vid;
+ struct batadv_backbone_gw *backbone_gw;
+ unsigned long lasttime; /* last time we heard of claim (locals only) */
+ struct rcu_head rcu;
+ atomic_t refcount;
+ struct hlist_node hash_entry;
+};
+#endif
+
struct batadv_tt_common_entry {
uint8_t addr[ETH_ALEN];
struct hlist_node hash_entry;
@@ -368,31 +393,6 @@ struct batadv_tt_orig_list_entry {
struct hlist_node list;
};
-#ifdef CONFIG_BATMAN_ADV_BLA
-struct batadv_backbone_gw {
- uint8_t orig[ETH_ALEN];
- short vid; /* used VLAN ID */
- struct hlist_node hash_entry;
- struct batadv_priv *bat_priv;
- unsigned long lasttime; /* last time we heard of this backbone gw */
- atomic_t wait_periods;
- atomic_t request_sent;
- atomic_t refcount;
- struct rcu_head rcu;
- uint16_t crc; /* crc checksum over all claims */
-};
-
-struct batadv_claim {
- uint8_t addr[ETH_ALEN];
- short vid;
- struct batadv_backbone_gw *backbone_gw;
- unsigned long lasttime; /* last time we heard of claim (locals only) */
- struct rcu_head rcu;
- atomic_t refcount;
- struct hlist_node hash_entry;
-};
-#endif
-
struct batadv_tt_change_node {
struct list_head list;
struct batadv_tt_change change;