]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/mountd/mountd.h
mountd: prepend '$' to make use_ipaddr clients self-describing
[nfs-utils.git] / utils / mountd / mountd.h
index c969a27ca18e48c23625701f749a716e5a4e4d90..6d358a75d9f3cfdcafdc4380ce8223a68a93fb3b 100644 (file)
@@ -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 */