summaryrefslogtreecommitdiff
path: root/net/ipv6/xfrm6_policy.c
diff options
context:
space:
mode:
authorDavid Ahern <dsa@cumulusnetworks.com>2015-10-21 18:42:22 +0300
committerDavid S. Miller <davem@davemloft.net>2015-10-22 17:36:19 +0300
commitd46a9d678e4c9fac1e968d0593e4dba683389324 (patch)
tree24b84e5a7b51f6c7687993a7951c44661b16fa4b /net/ipv6/xfrm6_policy.c
parent92a93fd5bbe7dbe0ee7322c92e44a820f62bef90 (diff)
downloadlinux-d46a9d678e4c9fac1e968d0593e4dba683389324.tar.xz
net: ipv6: Dont add RT6_LOOKUP_F_IFACE flag if saddr set
741a11d9e410 ("net: ipv6: Add RT6_LOOKUP_F_IFACE flag if oif is set") adds the RT6_LOOKUP_F_IFACE flag to make device index mismatch fatal if oif is given. Hajime reported that this change breaks the Mobile IPv6 use case that wants to force the message through one interface yet use the source address from another interface. Handle this case by only adding the flag if oif is set and saddr is not set. Fixes: 741a11d9e410 ("net: ipv6: Add RT6_LOOKUP_F_IFACE flag if oif is set") Cc: Hajime Tazaki <thehajime@gmail.com> Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/xfrm6_policy.c')
0 files changed, 0 insertions, 0 deletions