[PATCH] net: ipv6: ping: Use socket mark in routing lookup

Subsystems: networking [general], the rest

STALE4556d

2 messages, 2 authors, 2014-02-27 · open the first message on its own page

[PATCH] net: ipv6: ping: Use socket mark in routing lookup

From: Lorenzo Colitti <hidden>
Date: 2014-02-27 04:38:41

Signed-off-by: Lorenzo Colitti <redacted>
---
 net/ipv6/ping.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/net/ipv6/ping.c b/net/ipv6/ping.c
index fb9beb7..587bbdc 100644
--- a/net/ipv6/ping.c
+++ b/net/ipv6/ping.c
@@ -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));
-- 
1.9.0.rc1.175.g0b1dcb5

Re: [PATCH] net: ipv6: ping: Use socket mark in routing lookup

From: David Miller <hidden>
Date: 2014-02-27 21:09:13

From: Lorenzo Colitti <redacted>
Date: Thu, 27 Feb 2014 13:38:26 +0900
Signed-off-by: Lorenzo Colitti <redacted>
Applied, thanks a lot.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help