aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>2013-01-13 05:02:01 +0000
committerDavid S. Miller <davem@davemloft.net>2013-01-13 20:17:14 -0500
commite7219858ac1f98213a4714d0e24e7a003e1bf6a2 (patch)
tree9d721fcbce3426c2538fc063269deaa5da8fa45a /include/linux
parentipv6: Introduce ip6_flowinfo() to extract flowinfo (tclass + flowlabel). (diff)
downloadlinux-dev-e7219858ac1f98213a4714d0e24e7a003e1bf6a2.tar.xz
linux-dev-e7219858ac1f98213a4714d0e24e7a003e1bf6a2.zip
ipv6: Use ipv6_get_dsfield() instead of ipv6_tclass().
Commit 7a3198a8 ("ipv6: helper function to get tclass") introduced ipv6_tclass(), but similar function is already available as ipv6_get_dsfield(). We might be able to call ipv6_tclass() from ipv6_get_dsfield(), but it is confusing to have two versions. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/ipv6.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/ipv6.h b/include/linux/ipv6.h
index faed1e357dd6..304a9f46b578 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)
return (struct ipv6hdr *)skb_transport_header(skb);
}
-static inline __u8 ipv6_tclass(const struct ipv6hdr *iph)
-{
- return (ntohl(*(__be32 *)iph) >> 20) & 0xff;
-}
-
/*
This structure contains results of exthdrs parsing
as offsets from skb->nh.