summaryrefslogtreecommitdiff
path: root/net/sctp
diff options
context:
space:
mode:
authorFlorian Larysch <fl@n621.de>2017-04-03 16:46:09 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-05-02 21:19:52 -0700
commitcc5a5c09d32b8bd80477f45f12f47ca43536b19c (patch)
treebb425e7d5d09263f2887f7b2ae38f112ddd109f2 /net/sctp
parent593e185eaadeefdc05a5e595428aec468646165a (diff)
net: ipv4: fix multipath RTM_GETROUTE behavior when iif is given
[ Upstream commit a8801799c6975601fd58ae62f48964caec2eb83f ] inet_rtm_getroute synthesizes a skeletal ICMP skb, which is passed to ip_route_input when iif is given. If a multipath route is present for the designated destination, ip_multipath_icmp_hash ends up being called, which uses the source/destination addresses within the skb to calculate a hash. However, those are not set in the synthetic skb, causing it to return an arbitrary and incorrect result. Instead, use UDP, which gets no such special treatment. Signed-off-by: Florian Larysch <fl@n621.de> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/sctp')
0 files changed, 0 insertions, 0 deletions