Skip to content
Snippets Groups Projects
Commit fc038410 authored by David S. Miller's avatar David S. Miller
Browse files

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent a2af421f
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment