]> git.baikalelectronics.ru Git - kernel.git/commit
[UDP]: Make use of inet_iif() when doing socket lookups.
authorVlad Yasevich <vladislav.yasevich@hp.com>
Fri, 26 Oct 2007 01:54:46 +0000 (18:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Oct 2007 01:54:46 +0000 (18:54 -0700)
commit397e3ec2bae5e4b2f46fb118749c7921a3472a35
tree4a688264696a3cfdf7312e92b52ac4794197a7a5
parentea45946a0e65283f611e41aac0540f87d3e46619
[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 <vladislav.yasevich@hp.com>
Acked-by: David L Stevens <dlstevens@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_hashtables.h
include/net/inet_sock.h
net/ipv4/udp.c