diff options
author | Marek Lindner <lindner_marek@yahoo.de> | 2012-12-25 04:03:21 -0500 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2013-01-19 08:18:10 -0500 |
commit | 2006fea82085cfd9ddc92b23ef1ea8d57e065c61 (patch) | |
tree | 8e70cb5189bde2116a956916516dd8b16b723b70 /net/batman-adv | |
parent | 0abf5d8117dc864135eda5adda12640e16ed0cb8 (diff) |
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.h | 50 |
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 { | |||
339 | struct batadv_icmp_packet_rr icmp_packet; | 339 | struct batadv_icmp_packet_rr icmp_packet; |
340 | }; | 340 | }; |
341 | 341 | ||
342 | #ifdef CONFIG_BATMAN_ADV_BLA | ||
343 | struct batadv_backbone_gw { | ||
344 | uint8_t orig[ETH_ALEN]; | ||
345 | short vid; /* used VLAN ID */ | ||
346 | struct hlist_node hash_entry; | ||
347 | struct batadv_priv *bat_priv; | ||
348 | unsigned long lasttime; /* last time we heard of this backbone gw */ | ||
349 | atomic_t wait_periods; | ||
350 | atomic_t request_sent; | ||
351 | atomic_t refcount; | ||
352 | struct rcu_head rcu; | ||
353 | uint16_t crc; /* crc checksum over all claims */ | ||
354 | }; | ||
355 | |||
356 | struct batadv_claim { | ||
357 | uint8_t addr[ETH_ALEN]; | ||
358 | short vid; | ||
359 | struct batadv_backbone_gw *backbone_gw; | ||
360 | unsigned long lasttime; /* last time we heard of claim (locals only) */ | ||
361 | struct rcu_head rcu; | ||
362 | atomic_t refcount; | ||
363 | struct hlist_node hash_entry; | ||
364 | }; | ||
365 | #endif | ||
366 | |||
342 | struct batadv_tt_common_entry { | 367 | struct batadv_tt_common_entry { |
343 | uint8_t addr[ETH_ALEN]; | 368 | uint8_t addr[ETH_ALEN]; |
344 | struct hlist_node hash_entry; | 369 | struct hlist_node hash_entry; |
@@ -368,31 +393,6 @@ struct batadv_tt_orig_list_entry { | |||
368 | struct hlist_node list; | 393 | struct hlist_node list; |
369 | }; | 394 | }; |
370 | 395 | ||
371 | #ifdef CONFIG_BATMAN_ADV_BLA | ||
372 | struct batadv_backbone_gw { | ||
373 | uint8_t orig[ETH_ALEN]; | ||
374 | short vid; /* used VLAN ID */ | ||
375 | struct hlist_node hash_entry; | ||
376 | struct batadv_priv *bat_priv; | ||
377 | unsigned long lasttime; /* last time we heard of this backbone gw */ | ||
378 | atomic_t wait_periods; | ||
379 | atomic_t request_sent; | ||
380 | atomic_t refcount; | ||
381 | struct rcu_head rcu; | ||
382 | uint16_t crc; /* crc checksum over all claims */ | ||
383 | }; | ||
384 | |||
385 | struct batadv_claim { | ||
386 | uint8_t addr[ETH_ALEN]; | ||
387 | short vid; | ||
388 | struct batadv_backbone_gw *backbone_gw; | ||
389 | unsigned long lasttime; /* last time we heard of claim (locals only) */ | ||
390 | struct rcu_head rcu; | ||
391 | atomic_t refcount; | ||
392 | struct hlist_node hash_entry; | ||
393 | }; | ||
394 | #endif | ||
395 | |||
396 | struct batadv_tt_change_node { | 396 | struct batadv_tt_change_node { |
397 | struct list_head list; | 397 | struct list_head list; |
398 | struct batadv_tt_change change; | 398 | struct batadv_tt_change change; |