summaryrefslogtreecommitdiffstats
path: root/utils/statd/statd.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2010-01-14 12:24:08 -0500
committerSteve Dickson <steved@redhat.com>2010-01-15 14:55:51 -0500
commitffee293b10bbb80599ff4345a3155ff36ec05112 (patch)
tree6fe1342864bbe73490ac610d70391d61a86ac290 /utils/statd/statd.h
parent7f98c14d38badedd30d2d4a6b1d15e913967bf87 (diff)
downloadnfs-utils-ffee293b10bbb80599ff4345a3155ff36ec05112.tar.gz
nfs-utils-ffee293b10bbb80599ff4345a3155ff36ec05112.tar.xz
nfs-utils-ffee293b10bbb80599ff4345a3155ff36ec05112.zip
statd: Add API to canonicalize mon_names
Provide a shared function to generate canonical names that statd uses to index its on-disk monitor list. This function can resolve DNS hostnames, and IPv4 and IPv6 presentation addresses. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'utils/statd/statd.h')
-rw-r--r--utils/statd/statd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/statd/statd.h b/utils/statd/statd.h
index c2d5956..e89e666 100644
--- a/utils/statd/statd.h
+++ b/utils/statd/statd.h
@@ -25,6 +25,8 @@
extern _Bool statd_matchhostname(const char *hostname1, const char *hostname2);
extern _Bool statd_present_address(const struct sockaddr *sap, char *buf,
const size_t buflen);
+__attribute_malloc__
+extern char * statd_canonical_name(const char *hostname);
extern void my_svc_run(void);
extern void notify_hosts(void);