From: YOSHIFUJI Hideaki Date: Mon, 14 Apr 2008 06:40:51 +0000 (-0700) Subject: [IPV6]: Use appropriate sock tclass setting for routing lookup. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e9df2e8fd8fbc95c57dbd1d33dada66c4627b44c;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git [IPV6]: Use appropriate sock tclass setting for routing lookup. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/include/net/inet_ecn.h b/include/net/inet_ecn.h index ba33db053854..7040a782c656 100644 --- a/include/net/inet_ecn.h +++ b/include/net/inet_ecn.h @@ -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)