All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] ipv6: copy prefsrc setting when copying route entry
@ 2011-05-20 21:27 Florian Westphal
  2011-05-21  6:06 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Westphal @ 2011-05-20 21:27 UTC (permalink / raw)
  To: netdev; +Cc: Florian Westphal, Daniel Walter

commit c3968a857a6b6c3d2ef4ead35776b055fb664d74
('ipv6: RTA_PREFSRC support for ipv6 route source address selection')
added support for ipv6 prefsrc as an alternative to ipv6 addrlabels,
but it did not work because the prefsrc entry was not copied.

Cc: Daniel Walter <sahne@0x90.at>
Signed-off-by: Florian Westphal <fw@strlen.de>
---
diff --git a/net/ipv6/route.c b/net/ipv6/route.c
index fd0eec6..deae5b5 100644
--- a/net/ipv6/route.c
+++ b/net/ipv6/route.c
@@ -1746,6 +1746,7 @@ static struct rt6_info * ip6_rt_copy(struct rt6_info *ort)
 #ifdef CONFIG_IPV6_SUBTREES
 		memcpy(&rt->rt6i_src, &ort->rt6i_src, sizeof(struct rt6key));
 #endif
+		memcpy(&rt->rt6i_prefsrc, &ort->rt6i_prefsrc, sizeof(struct rt6key));
 		rt->rt6i_table = ort->rt6i_table;
 	}
 	return rt;
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] ipv6: copy prefsrc setting when copying route entry
  2011-05-20 21:27 [PATCH 1/1] ipv6: copy prefsrc setting when copying route entry Florian Westphal
@ 2011-05-21  6:06 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2011-05-21  6:06 UTC (permalink / raw)
  To: fw; +Cc: netdev, sahne

From: Florian Westphal <fw@strlen.de>
Date: Fri, 20 May 2011 23:27:24 +0200

> commit c3968a857a6b6c3d2ef4ead35776b055fb664d74
> ('ipv6: RTA_PREFSRC support for ipv6 route source address selection')
> added support for ipv6 prefsrc as an alternative to ipv6 addrlabels,
> but it did not work because the prefsrc entry was not copied.
> 
> Cc: Daniel Walter <sahne@0x90.at>
> Signed-off-by: Florian Westphal <fw@strlen.de>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-05-21  6:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-20 21:27 [PATCH 1/1] ipv6: copy prefsrc setting when copying route entry Florian Westphal
2011-05-21  6:06 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.