Thread (3 messages) flat view 3 messages, 2 authors, 2017-02-23

Re: [PATCH net] vxlan: don't allow overwrite of config src addr

From: Jiri Benc <hidden>
Date: 2017-02-23 16:03:32

On Mon, 20 Feb 2017 17:25:28 +0000, Brian Russell wrote:
When using IPv6 transport and a default dst, a pointer to the configured
source address is passed into the route lookup. If no source address is
configured, then the value is overwritten.

IPv6 route lookup ignores egress ifindex match if the source adress is set,
so if egress ifindex match is desired, the source address must be passed
as any. The overwrite breaks this for subsequent lookups.

Avoid this by copying the configured address to an existing stack variable
and pass a pointer to that instead.
Seems there were another patches applied between the time you created
the patch and sent it and it doesn't apply.

Feel free to add to v2:

Acked-by: Jiri Benc <redacted>

 Jiri
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help