X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv6%2Finet6_connection_sock.c;h=eb2865d5ae286cdfffa2c098aa881c7c752b526e;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=bf491077b822158302efdd22458f64b5a31d5764;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/net/ipv6/inet6_connection_sock.c b/net/ipv6/inet6_connection_sock.c index bf491077b..eb2865d5a 100644 --- a/net/ipv6/inet6_connection_sock.c +++ b/net/ipv6/inet6_connection_sock.c @@ -13,6 +13,7 @@ * 2 of the License, or(at your option) any later version. */ +#include #include #include #include @@ -185,7 +186,9 @@ int inet6_csk_xmit(struct sk_buff *skb, int ipfragok) return err; } - __ip6_dst_store(sk, dst, NULL); + ip6_dst_store(sk, dst, NULL); + sk->sk_route_caps = dst->dev->features & + ~(NETIF_F_IP_CSUM | NETIF_F_TSO); } skb->dst = dst_clone(dst);