Skip to content
Commit fe38d2a1 authored by Josef Bacik's avatar Josef Bacik Committed by David S. Miller
Browse files

inet: collapse ipv4/v6 rcv_saddr_equal functions into one



We pass these per-protocol equal functions around in various places, but
we can just have one function that checks the sk->sk_family and then do
the right comparison function.  I've also changed the ipv4 version to
not cast to inet_sock since it is unneeded.

Signed-off-by: default avatarJosef Bacik <jbacik@fb.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ab70e586
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment