[UDP]: Fix AF-specific references in AF-agnostic code.
authorDavid S. Miller <davem@sunset.davemloft.net>
Wed, 9 May 2007 23:42:20 +0000 (16:42 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 11 May 2007 06:47:22 +0000 (23:47 -0700)
commitfc038410b4b1643766f8033f4940bcdb1dace633
tree3ee59190ecaa77061a9b64cdc09fcce6b6efc389
parenta2af421f1819946556c6f467b1efdd0dc84af4d5
[UDP]: Fix AF-specific references in AF-agnostic code.

__udp_lib_port_inuse() cannot make direct references to
inet_sk(sk)->rcv_saddr as that is ipv4 specific state and
this code is used by ipv6 too.

Use an operations vector to solve this, and this also paves
the way for ipv6 support for non-wild saddr hashing in UDP.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/udp.h
include/net/udplite.h
net/ipv4/udp.c
net/ipv4/udp_impl.h
net/ipv4/udplite.c
net/ipv6/udp.c
net/ipv6/udp_impl.h
net/ipv6/udplite.c