Skip to content
Commit d7371c41 authored by Ian Dall's avatar Ian Dall Committed by Trond Myklebust
Browse files

Bug 11061, NFS mounts dropped



Addresses: http://bugzilla.kernel.org/show_bug.cgi?id=11061

sockaddr structures can't be reliably compared using memcmp() because
there are padding bytes in the structure which can't be guaranteed to
be the same even when the sockaddr structures refer to the same
socket. Instead compare all the relevant fields. In the case of IPv6
sin6_flowinfo is not compared because it only affects QoS and
sin6_scope_id is only compared if the address is "link local" because
"link local" addresses need only be unique to a specific link.

Signed-off-by: default avatarIan Dall <ian@beware.dropbear.id.au>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent a71ee337
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