ipv6: Store Router Alert option in IP6CB directly.
Router Alert option is very small and we can store the value itself in the skb. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2b464f61f0
commit
dd3332bfcb
4 changed files with 8 additions and 5 deletions
|
@ -84,7 +84,7 @@ static inline struct ipv6hdr *ipipv6_hdr(const struct sk_buff *skb)
|
|||
|
||||
struct inet6_skb_parm {
|
||||
int iif;
|
||||
__u16 ra;
|
||||
__be16 ra;
|
||||
__u16 hop;
|
||||
__u16 dst0;
|
||||
__u16 srcrt;
|
||||
|
@ -100,6 +100,7 @@ struct inet6_skb_parm {
|
|||
#define IP6SKB_XFRM_TRANSFORMED 1
|
||||
#define IP6SKB_FORWARDED 2
|
||||
#define IP6SKB_REROUTED 4
|
||||
#define IP6SKB_ROUTERALERT 8
|
||||
};
|
||||
|
||||
#define IP6CB(skb) ((struct inet6_skb_parm*)((skb)->cb))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue