#include <net/if.h>
static struct timeval default_timeout = { 5, 0 };
-static struct timeval default_tottimeout = { 60, 0 };
/*
* Find the mapped port for program,version.
* Calls the pmap service remotely to do the lookup.
* Returns 0 if no map exists.
*/
-__private_extern__ u_short
+u_short
pmap_getport_timeout(struct sockaddr_in *address, uint32_t program, uint32_t version, uint32_t protocol, struct timeval *timeout, struct timeval *totaltimeout)
{
u_short port;
u_short
pmap_getport(address, program, version, protocol)
#ifdef __LP64__
-struct sockaddr_in *address;
-uint32_t program;
-uint32_t version;
-uint32_t protocol;
+ struct sockaddr_in *address;
+ uint32_t program;
+ uint32_t version;
+ uint32_t protocol;
#else
-struct sockaddr_in *address;
-u_long program;
-u_long version;
-u_int protocol;
+ struct sockaddr_in *address;
+ u_long program;
+ u_long version;
+ u_int protocol;
#endif
{
return pmap_getport_timeout(address, (uint32_t)program, (uint32_t)version, (uint32_t)protocol, NULL, NULL);