|
@@ -1282,6 +1282,7 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb,
|
|
|
newnp->opt = NULL;
|
|
|
newnp->mcast_oif = inet6_iif(skb);
|
|
|
newnp->mcast_hops = ipv6_hdr(skb)->hop_limit;
|
|
|
+ newnp->rcv_tclass = ipv6_tclass(ipv6_hdr(skb));
|
|
|
|
|
|
/*
|
|
|
* No need to charge this sock to the relevant IPv6 refcnt debug socks count
|
|
@@ -1360,6 +1361,7 @@ static struct sock * tcp_v6_syn_recv_sock(struct sock *sk, struct sk_buff *skb,
|
|
|
newnp->opt = NULL;
|
|
|
newnp->mcast_oif = inet6_iif(skb);
|
|
|
newnp->mcast_hops = ipv6_hdr(skb)->hop_limit;
|
|
|
+ newnp->rcv_tclass = ipv6_tclass(ipv6_hdr(skb));
|
|
|
|
|
|
/* Clone native IPv6 options from listening socket (if any)
|
|
|
|
|
@@ -1562,6 +1564,8 @@ ipv6_pktoptions:
|
|
|
np->mcast_oif = inet6_iif(opt_skb);
|
|
|
if (np->rxopt.bits.rxhlim || np->rxopt.bits.rxohlim)
|
|
|
np->mcast_hops = ipv6_hdr(opt_skb)->hop_limit;
|
|
|
+ if (np->rxopt.bits.rxtclass)
|
|
|
+ np->rcv_tclass = ipv6_tclass(ipv6_hdr(skb));
|
|
|
if (ipv6_opt_accepted(sk, opt_skb)) {
|
|
|
skb_set_owner_r(opt_skb, sk);
|
|
|
opt_skb = xchg(&np->pktoptions, opt_skb);
|