Staging: batman-adv: Reduce max characters on a line to 80
[pandora-kernel.git] / drivers / staging / batman-adv / types.h
index 0b1fe9e..86007c7 100644 (file)
 #include "packet.h"
 #include "bitarray.h"
 
-#define BAT_HEADER_LEN (sizeof(struct ethhdr) + ((sizeof(struct unicast_packet) > sizeof(struct bcast_packet) ? sizeof(struct unicast_packet) : sizeof(struct bcast_packet))))
+#define BAT_HEADER_LEN (sizeof(struct ethhdr) + \
+       ((sizeof(struct unicast_packet) > sizeof(struct bcast_packet) ? \
+        sizeof(struct unicast_packet) : \
+        sizeof(struct bcast_packet))))
 
 
 struct batman_if {
@@ -47,28 +50,40 @@ struct batman_if {
 
 };
 
-struct orig_node {               /* structure for orig_list maintaining nodes of mesh */
+/**
+  *    orig_node - structure for orig_list maintaining nodes of mesh
+  *    @last_valid: when last packet from this node was received
+  *    @bcast_seqno_reset: time when the broadcast seqno window was reset
+  *    @batman_seqno_reset: time when the batman seqno window was reset
+  *    @flags: for now only VIS_SERVER flag
+  *    @last_real_seqno: last and best known squence number
+  *    @last_ttl: ttl of last received packet
+  *    @last_bcast_seqno: last broadcast sequence number received by this host
+ */
+struct orig_node {
        uint8_t orig[ETH_ALEN];
        struct neigh_node *router;
        TYPE_OF_WORD *bcast_own;
        uint8_t *bcast_own_sum;
        uint8_t tq_own;
        int tq_asym_penalty;
-       unsigned long last_valid;        /* when last packet from this node was received */
-       unsigned long bcast_seqno_reset; /* time when the broadcast
-                                           seqno window was reset. */
-       unsigned long batman_seqno_reset;/* time when the batman seqno
-                                           window was reset. */
-       uint8_t  flags;                  /* for now only VIS_SERVER flag. */
+       unsigned long last_valid;
+       unsigned long bcast_seqno_reset;
+       unsigned long batman_seqno_reset;
+       uint8_t  flags;
        unsigned char *hna_buff;
        int16_t  hna_buff_len;
-       uint16_t last_real_seqno;   /* last and best known squence number */
-       uint8_t last_ttl;         /* ttl of last received packet */
+       uint16_t last_real_seqno;
+       uint8_t last_ttl;
        TYPE_OF_WORD bcast_bits[NUM_WORDS];
-       uint16_t last_bcast_seqno;  /* last broadcast sequence number received by this host */
+       uint16_t last_bcast_seqno;
        struct list_head neigh_list;
 };
 
+/**
+  *    neigh_node
+  *    @last_valid: when last packet via this neighbor was received
+ */
 struct neigh_node {
        struct list_head list;
        uint8_t addr[ETH_ALEN];
@@ -77,7 +92,7 @@ struct neigh_node {
        uint8_t tq_index;
        uint8_t tq_avg;
        uint8_t last_ttl;
-       unsigned long last_valid;            /* when last packet via this neighbor was received */
+       unsigned long last_valid;
        TYPE_OF_WORD real_bits[NUM_WORDS];
        struct orig_node *orig_node;
        struct batman_if *if_incoming;
@@ -117,7 +132,11 @@ struct hna_global_entry {
        struct orig_node *orig_node;
 };
 
-struct forw_packet {               /* structure for forw_list maintaining packets to be send/forwarded */
+/**
+  *    forw_packet - structure for forw_list maintaining packets to be
+  *                  send/forwarded
+ */
+struct forw_packet {
        struct hlist_node list;
        unsigned long send_time;
        uint8_t own;