summaryrefslogtreecommitdiffstats
path: root/support/export/nfsctl.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2010-04-08 10:51:54 -0400
committerSteve Dickson <steved@redhat.com>2010-04-08 11:16:18 -0400
commita4e3d5c53195c789ae26697a0b2ecdf05d76a85b (patch)
tree4289cac72cd7c464b94f4322c50fa86b367cc158 /support/export/nfsctl.c
parent6abde64e6a605443dfc283ffb2642cb853f8b5b0 (diff)
downloadnfs-utils-a4e3d5c53195c789ae26697a0b2ecdf05d76a85b.tar.gz
nfs-utils-a4e3d5c53195c789ae26697a0b2ecdf05d76a85b.tar.xz
nfs-utils-a4e3d5c53195c789ae26697a0b2ecdf05d76a85b.zip
libexport.a: Factor SUBNETWORK checking out of check_client()
Clean up: Factor the MCL_SUBNETWORK case out of check_client() and client_checkaddr(). This will make it easier to add IPv6 support eventually. The logic in the new helper function will get a little more tangled once IPv6 support is introduced. Each slot in the clp address list eventually may contain an address from either address family. Note that the switch statement in client_checkaddr() is redundant, since clp->cl_mtype is loop invariant. This change makes SUBNETWORK client checking more computationally efficient, at the cost of a few extra lines of code. This commit should not change code behavior in any way. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/export/nfsctl.c')
0 files changed, 0 insertions, 0 deletions