void afs_nfsclient_hold(), afs_PutNfsClientPag(), afs_nfsclient_GC();
static void afs_nfsclient_getcreds();
int afs_nfsclient_sysname(), afs_nfsclient_stats(), afs_nfsclient_checkhost();
-afs_int32 afs_nfsclient_gethost();
+afs_uint32 afs_nfsclient_gethost();
#ifdef AFS_AIX_IAUTH_ENV
int afs_allnfsreqs, afs_nfscalls;
#endif
/* Creates an nfsclientpag structure for the (uid, host) pair if one doesn't
* exist. RefCount is incremented and it's time stamped. */
static struct nfsclientpag *
-afs_GetNfsClientPag(register afs_int32 uid, register afs_int32 host)
+afs_GetNfsClientPag(register afs_int32 uid, register afs_uint32 host)
{
register struct nfsclientpag *np;
register afs_int32 i, now;
* {pag, host} pair, if pag is nonzero. RefCount is incremented and it's
* time stamped. */
static struct nfsclientpag *
-afs_FindNfsClientPag(afs_int32 uid, afs_int32 host, afs_int32 pag)
+afs_FindNfsClientPag(afs_int32 uid, afs_uint32 host, afs_int32 pag)
{
register struct nfsclientpag *np;
register afs_int32 i;
int
afs_nfsclient_reqhandler(struct afs_exporter *exporter,
afs_ucred_t **cred,
- afs_int32 host, afs_int32 *pagparam,
+ afs_uint32 host, afs_int32 *pagparam,
struct afs_exporter **outexporter)
{
register struct nfsclientpag *np, *tnp;
/* check if this exporter corresponds to the specified host */
int
-afs_nfsclient_checkhost(register struct nfsclientpag *np, int host)
+afs_nfsclient_checkhost(register struct nfsclientpag *np, afs_uint32 host)
{
if (np->type != EXP_NFS)
return 0;
/* get the host for this exporter, or 0 if there is an error */
-afs_int32
+afs_uint32
afs_nfsclient_gethost(register struct nfsclientpag *np)
{
if (np->type != EXP_NFS)
extern void afs_nfsclient_init(void);
extern int afs_nfsclient_reqhandler(struct afs_exporter *exporter,
afs_ucred_t **cred,
- afs_int32 host, afs_int32 *pagparam,
+ afs_uint32 host, afs_int32 *pagparam,
struct afs_exporter **outexporter);
extern void shutdown_nfsclnt(void);
void (*export_garbagecollect) (struct afs_exporter *exp,
afs_int32 param);
int (*export_statistics) (struct afs_exporter *exp);
- int (*export_checkhost) (struct afs_exporter *exp, afs_int32 host);
- afs_int32 (*export_gethost) (struct afs_exporter *exp);
+ int (*export_checkhost) (struct afs_exporter *exp, afs_uint32 host);
+ afs_uint32 (*export_gethost) (struct afs_exporter *exp);
};
struct exporterstats {
afs_int32 refCount; /* Ref count for packages using this */
afs_int32 uid; /* search based on uid and ... */
- afs_int32 host; /* ... nfs client's host ip address */
+ afs_uint32 host; /* ... nfs client's host ip address */
afs_int32 pag; /* active pag for all (uid, host) "unpaged" conns */
afs_int32 client_uid; /* actual UID on client */
char *sysname[MAXNUMSYSNAMES];/* user's "@sys" value; also kept in unixuser */