net: ipv6: ping: Use socket mark in routing lookup
authorLorenzo Colitti <lorenzo@google.com>
Thu, 27 Feb 2014 04:38:26 +0000 (13:38 +0900)
committerJP Abgrall <jpa@google.com>
Fri, 16 May 2014 18:18:51 +0000 (18:18 +0000)
Change-Id: I5a61e0f9f22f193c51b1aafd270fb0642a2e0fab
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ping.c

index 858788da5a2fd0bc2cdf6ee8bd3abaf03b995239..d4edfceab36f198ced8efca89078f1454b65fb77 100644 (file)
@@ -158,6 +158,7 @@ int ping_v6_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg,
        fl6.flowi6_proto = IPPROTO_ICMPV6;
        fl6.saddr = np->saddr;
        fl6.daddr = *daddr;
+       fl6.flowi6_mark = sk->sk_mark;
        fl6.fl6_icmp_type = user_icmph.icmp6_type;
        fl6.fl6_icmp_code = user_icmph.icmp6_code;
        security_sk_classify_flow(sk, flowi6_to_flowi(&fl6));