]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IPV6]: Use appropriate sock tclass setting for routing lookup.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Mon, 14 Apr 2008 06:40:51 +0000 (23:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Apr 2008 06:40:51 +0000 (23:40 -0700)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_ecn.h

index ba33db0538545a55c39553042278f52d318611e8..7040a782c656e34fd366eca2f6376e01e66303e7 100644 (file)
@@ -47,7 +47,7 @@ static inline __u8 INET_ECN_encapsulate(__u8 outer, __u8 inner)
     } while (0)
 
 #define        IP6_ECN_flow_xmit(sk, label) do {                               \
-       if (INET_ECN_is_capable(inet_sk(sk)->tos))                      \
+       if (INET_ECN_is_capable(inet6_sk(sk)->tclass))                  \
                (label) |= htonl(INET_ECN_ECT_0 << 20);                 \
     } while (0)