diff options
Diffstat (limited to 'include/linux/ipv6.h')
-rw-r--r-- | include/linux/ipv6.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h index 743a16a41040..4847a64d3c0a 100644 --- a/include/linux/ipv6.h +++ b/include/linux/ipv6.h | |||
@@ -233,6 +233,11 @@ static inline struct ipv6hdr *ipipv6_hdr(const struct sk_buff *skb) | |||
233 | return (struct ipv6hdr *)skb_transport_header(skb); | 233 | return (struct ipv6hdr *)skb_transport_header(skb); |
234 | } | 234 | } |
235 | 235 | ||
236 | static inline __u8 ipv6_tclass(const struct ipv6hdr *iph) | ||
237 | { | ||
238 | return (ntohl(*(__be32 *)iph) >> 20) & 0xff; | ||
239 | } | ||
240 | |||
236 | /* | 241 | /* |
237 | This structure contains results of exthdrs parsing | 242 | This structure contains results of exthdrs parsing |
238 | as offsets from skb->nh. | 243 | as offsets from skb->nh. |