]> git.decadent.org.uk Git - nfs-utils.git/blob - support/nfs/nfsclient.c
Remove the rpcsec_gss code and rely on an external library instead.
[nfs-utils.git] / support / nfs / nfsclient.c
1 /*
2  * support/nfs/client.c
3  *
4  * Add or delete an NFS client in knfsd.
5  *
6  * Copyright (C) 1995, 1996 Olaf Kirch <okir@monad.swb.de>
7  */
8
9 #include "config.h"
10
11 #include <string.h>
12 #include "nfslib.h"
13
14 int
15 nfsaddclient(struct nfsctl_client *clp)
16 {
17         struct nfsctl_arg       arg;
18
19         arg.ca_version = NFSCTL_VERSION;
20         memcpy(&arg.ca_client, clp, sizeof(arg.ca_client));
21         return nfsctl(NFSCTL_ADDCLIENT, &arg, NULL);
22 }
23
24 int
25 nfsdelclient(struct nfsctl_client *clp)
26 {
27         struct nfsctl_arg       arg;
28
29         arg.ca_version = NFSCTL_VERSION;
30         memcpy(&arg.ca_client, clp, sizeof(arg.ca_client));
31         return nfsctl(NFSCTL_DELCLIENT, &arg, NULL);
32 }