47 #define PORTMAP_GETPORT 3 82 if ( ! getport_reply || ! reply )
86 if ( getport_reply == 0 || getport_reply->
port >= 65536 )
#define ONCRPC_FIELD(type, value)
#define EINVAL
Invalid argument.
#define PORTMAP_GETPORT
PORTMAP GETPORT procedure.
Uniform Resource Identifiers.
int oncrpc_call(struct interface *intf, struct oncrpc_session *session, uint32_t proc_name, const struct oncrpc_field fields[])
Data transfer interfaces.
#define oncrpc_iob_get_int(buf)
Get a 32 bits integer from the beginning of an I/O buffer.
int portmap_get_getport_reply(struct portmap_getport_reply *getport_reply, struct oncrpc_reply *reply)
Parse a GETPORT reply.
Transport-network layer interface.
Data transfer interface opening.
int portmap_getport(struct interface *intf, struct oncrpc_session *session, uint32_t prog, uint32_t vers, uint32_t proto)
Send a GETPORT request.
uint32_t port
Port returned.