Commit fee9dee7 authored by Committed by David S. Miller
[UDP]: Make use of inet_iif() when doing socket lookups.
UDP currently uses skb->dev->ifindex which may provide the wrong information when the socket bound to a specific interface. This patch makes inet_iif() accessible to UDP and makes UDP use it. The scenario we are trying to fix is when a client is running on the same system and the server and both client and server bind to a non-loopback device. Signed-off-by: Vlad Yasevich <email@example.com> Acked-by: David L Stevens <firstname.lastname@example.org> Signed-off-by: David S. Miller <email@example.com>
Showing with 8 additions and 7 deletions