diff options
author | Florent Fourcot <florent.fourcot@enst-bretagne.fr> | 2013-12-08 15:46:59 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-09 21:03:49 -0500 |
commit | 82e9f105a28006e7ff864220a28cf62ea6d1e280 (patch) | |
tree | 02a492ba4d118b58309484ccf9d1327d9cd46f92 /net/ipv6/ipv6_sockglue.c | |
parent | 37cfee909c5a396abccf43e3e0a63a5f5ac998af (diff) | |
download | op-kernel-dev-82e9f105a28006e7ff864220a28cf62ea6d1e280.zip op-kernel-dev-82e9f105a28006e7ff864220a28cf62ea6d1e280.tar.gz |
ipv6: remove rcv_tclass of ipv6_pinfo
tclass information in now already stored in rcv_flowinfo
We do not need to store the same information twice.
Signed-off-by: Florent Fourcot <florent.fourcot@enst-bretagne.fr>
Reviewed-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ipv6_sockglue.c')
-rw-r--r-- | net/ipv6/ipv6_sockglue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c index c2db1df..7d93915 100644 --- a/net/ipv6/ipv6_sockglue.c +++ b/net/ipv6/ipv6_sockglue.c @@ -1019,7 +1019,7 @@ static int do_ipv6_getsockopt(struct sock *sk, int level, int optname, put_cmsg(&msg, SOL_IPV6, IPV6_HOPLIMIT, sizeof(hlim), &hlim); } if (np->rxopt.bits.rxtclass) { - int tclass = np->rcv_tclass; + int tclass = ntohl(np->rcv_flowinfo & IPV6_TCLASS_MASK) >> 20; put_cmsg(&msg, SOL_IPV6, IPV6_TCLASS, sizeof(tclass), &tclass); } if (np->rxopt.bits.rxoinfo) { |