Skip to contentSkip to conversation

net: ipv6: ping: Use socket mark in routing lookup

PATCH Applied Lorenzo Colitti 2 participants 2 messages Feb 27, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: ipv6: ping: Use socket mark in routing lookup

---
 net/ipv6/ping.c | 1 +
 1 file changed, 1 insertion(+)
net/ipv6/ping.c +1 -0
index fb9beb7..587bbdc 100644
@@ -135,6 +135,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));
Signature · 1 line
1.9.0.rc1.175.g0b1dcb5