From faf10b955b029f8a5c569570bcdbcc56bdf0ce6f Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 23 May 2005 17:14:22 +0000 Subject: * sunrpc/pm_getport.c (__get_socket): New function. (pmap_getport): Use it to open a non-reserved socket to the portmapper for TCP. * include/rpc/pmap_clnt.h (__get_socket): Declare. * sunrpc/pm_getmaps.c (pmap_getmaps): Use __get_socket to get an non-reserved socket for the portmapper. range to even lower ports. --- include/rpc/pmap_clnt.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/rpc') diff --git a/include/rpc/pmap_clnt.h b/include/rpc/pmap_clnt.h index 2d02ff2..9a22082 100644 --- a/include/rpc/pmap_clnt.h +++ b/include/rpc/pmap_clnt.h @@ -5,4 +5,8 @@ libc_hidden_proto (pmap_getport) libc_hidden_proto (pmap_set) libc_hidden_proto (pmap_unset) +/* Defined in pm_getport.c. */ +extern int __get_socket (struct sockaddr_in *saddr) + attribute_hidden internal_function; + #endif -- cgit v1.1