4 * Add or delete an NFS client in knfsd.
6 * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
17 nfsaddclient(struct nfsctl_client *clp)
19 struct nfsctl_arg arg;
21 arg.ca_version = NFSCTL_VERSION;
22 memcpy(&arg.ca_client, clp, sizeof(arg.ca_client));
23 return nfsctl(NFSCTL_ADDCLIENT, &arg, NULL);
27 nfsdelclient(struct nfsctl_client *clp)
29 struct nfsctl_arg arg;
31 arg.ca_version = NFSCTL_VERSION;
32 memcpy(&arg.ca_client, clp, sizeof(arg.ca_client));
33 return nfsctl(NFSCTL_DELCLIENT, &arg, NULL);