diff options
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r-- | net/batman-adv/main.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h index 8a10619ae916..0afd4ee7708b 100644 --- a/net/batman-adv/main.h +++ b/net/batman-adv/main.h | |||
@@ -302,4 +302,10 @@ static inline uint64_t batadv_sum_counter(struct batadv_priv *bat_priv, | |||
302 | return sum; | 302 | return sum; |
303 | } | 303 | } |
304 | 304 | ||
305 | /* Define a macro to reach the control buffer of the skb. The members of the | ||
306 | * control buffer are defined in struct batadv_skb_cb in types.h. | ||
307 | * The macro is inspired by the similar macro TCP_SKB_CB() in tcp.h. | ||
308 | */ | ||
309 | #define BATADV_SKB_CB(__skb) ((struct batadv_skb_cb *)&((__skb)->cb[0])) | ||
310 | |||
305 | #endif /* _NET_BATMAN_ADV_MAIN_H_ */ | 311 | #endif /* _NET_BATMAN_ADV_MAIN_H_ */ |