]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commite21f7b1d4191369baa6d65a5721d63fe43c510fa
tree3ee59190ecaa77061a9b64cdc09fcce6b6efc389
parent9d2e244aae26ae66234933b1d3a06184b50b5ca6
[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