]> git.decadent.org.uk Git - nfs-utils.git/blob - support/include/misc.h
Really reuse ports, even when mountd is run without '-p'.
[nfs-utils.git] / support / include / misc.h
1 /*
2  * misc.h       All that didn't fit elsewhere.
3  *
4  * Copyright (C) 1995 Olaf Kirch <okir@monad.swb.de>
5  */
6
7 #ifndef MISC_H
8 #define MISC_H
9
10 /*
11  * Generate random key, returning the length of the result. Currently,
12  * weakrandomkey generates a maximum of 20 bytes are generated, but this
13  * may change with future implementations.
14  */
15 int     randomkey(unsigned char *keyout, int len);
16 int     weakrandomkey(unsigned char *keyout, int len);
17
18 int     matchhostname(const char *h1, const char *h2); 
19
20 struct hostent;
21 struct hostent  *hostent_dup(struct hostent *hp);
22 struct hostent  *get_hostent (const char *addr, int len, int type);
23
24 #endif /* MISC_H */