diff options
Diffstat (limited to 'include/linux/ipv6.h')
-rw-r--r-- | include/linux/ipv6.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index faed1e357dd6..850e95bc766c 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h | |||
@@ -77,11 +77,6 @@ static inline struct ipv6hdr *ipipv6_hdr(const struct sk_buff *skb) | |||
77 | return (struct ipv6hdr *)skb_transport_header(skb); | 77 | return (struct ipv6hdr *)skb_transport_header(skb); |
78 | } | 78 | } |
79 | 79 | ||
80 | static inline __u8 ipv6_tclass(const struct ipv6hdr *iph) | ||
81 | { | ||
82 | return (ntohl(*(__be32 *)iph) >> 20) & 0xff; | ||
83 | } | ||
84 | |||
85 | /* | 80 | /* |
86 | This structure contains results of exthdrs parsing | 81 | This structure contains results of exthdrs parsing |
87 | as offsets from skb->nh. | 82 | as offsets from skb->nh. |
@@ -89,7 +84,7 @@ static inline __u8 ipv6_tclass(const struct ipv6hdr *iph) | |||
89 | 84 | ||
90 | struct inet6_skb_parm { | 85 | struct inet6_skb_parm { |
91 | int iif; | 86 | int iif; |
92 | __u16 ra; | 87 | __be16 ra; |
93 | __u16 hop; | 88 | __u16 hop; |
94 | __u16 dst0; | 89 | __u16 dst0; |
95 | __u16 srcrt; | 90 | __u16 srcrt; |
@@ -105,6 +100,7 @@ struct inet6_skb_parm { | |||
105 | #define IP6SKB_XFRM_TRANSFORMED 1 | 100 | #define IP6SKB_XFRM_TRANSFORMED 1 |
106 | #define IP6SKB_FORWARDED 2 | 101 | #define IP6SKB_FORWARDED 2 |
107 | #define IP6SKB_REROUTED 4 | 102 | #define IP6SKB_REROUTED 4 |
103 | #define IP6SKB_ROUTERALERT 8 | ||
108 | }; | 104 | }; |
109 | 105 | ||
110 | #define IP6CB(skb) ((struct inet6_skb_parm*)((skb)->cb)) | 106 | #define IP6CB(skb) ((struct inet6_skb_parm*)((skb)->cb)) |
@@ -218,7 +214,7 @@ struct ipv6_pinfo { | |||
218 | 214 | ||
219 | struct ipv6_mc_socklist __rcu *ipv6_mc_list; | 215 | struct ipv6_mc_socklist __rcu *ipv6_mc_list; |
220 | struct ipv6_ac_socklist *ipv6_ac_list; | 216 | struct ipv6_ac_socklist *ipv6_ac_list; |
221 | struct ipv6_fl_socklist *ipv6_fl_list; | 217 | struct ipv6_fl_socklist __rcu *ipv6_fl_list; |
222 | 218 | ||
223 | struct ipv6_txoptions *opt; | 219 | struct ipv6_txoptions *opt; |
224 | struct sk_buff *pktoptions; | 220 | struct sk_buff *pktoptions; |