X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmountd%2Fmountd.h;h=6d358a75d9f3cfdcafdc4380ce8223a68a93fb3b;hp=c969a27ca18e48c23625701f749a716e5a4e4d90;hb=c2544b77566690ebec32a2d47c9249548b1a0941;hpb=236025253c6ec534cd816390464435ec18c499f7 diff --git a/utils/mountd/mountd.h b/utils/mountd/mountd.h index c969a27..6d358a7 100644 --- a/utils/mountd/mountd.h +++ b/utils/mountd/mountd.h @@ -60,4 +60,9 @@ 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 */