summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorBrian Russell <brussell@brocade.com>2017-02-24 17:47:11 +0000
committerDavid S. Miller <davem@davemloft.net>2017-02-24 13:36:24 -0500
commit1158632b5a2dcce0786c1b1b99654e81cc867981 (patch)
tree26189ec44a8a0f60e880985a9bfb7fc1c3b89896 /net
parent7dcdf941cdc96692ab99fd790c8cc68945514851 (diff)
vxlan: don't allow overwrite of config src addr
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 address 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. Fixes: 272d96a5ab10 ("net: vxlan: lwt: Use source ip address during route lookup.") Signed-off-by: Brian Russell <brussell@brocade.com> Acked-by: Jiri Benc <jbenc@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions