X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmountd%2Fmountd.h;h=6d358a75d9f3cfdcafdc4380ce8223a68a93fb3b;hp=4c184d20d6c7422920879059414c2c24321a7075;hb=985f89a8a87f2626583b240f7abad86d97a77596;hpb=ffe8c9a084fec4fdd3acfcf4b36fbe434d297b82 diff --git a/utils/mountd/mountd.h b/utils/mountd/mountd.h index 4c184d2..6d358a7 100644 --- a/utils/mountd/mountd.h +++ b/utils/mountd/mountd.h @@ -56,4 +56,13 @@ struct nfs_fh_len * cache_get_filehandle(nfs_export *exp, int len, char *p); int cache_export(nfs_export *exp, char *path); +bool ipaddr_client_matches(nfs_export *exp, struct addrinfo *ai); +bool namelist_client_matches(nfs_export *exp, char *dom); +bool client_matches(nfs_export *exp, char *dom, struct addrinfo *ai); + +static inline bool is_ipaddr_client(char *dom) +{ + return dom[0] == '$'; +} + #endif /* MOUNTD_H */