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