2 * Lightweight Autonomic Network Architecture
4 * Copyright 2011 Daniel Borkmann <dborkma@tik.ee.ethz.ch>,
5 * Swiss federal institute of technology (ETH Zurich)
12 #include <linux/skbuff.h>
15 struct sock_lana_inf
{
22 #define SKB_LANA_INF(skb) ((struct sock_lana_inf *) ((skb)->cb))
24 static inline void write_next_idp_to_skb(struct sk_buff
*skb
, idp_t from
,
27 struct sock_lana_inf
*sli
= SKB_LANA_INF(skb
);
32 static inline idp_t
read_next_idp_from_skb(struct sk_buff
*skb
)
34 return SKB_LANA_INF(skb
)->idp_dst
;