16#define PORTMAP_PORT 111
19#define ONCRPC_PORTMAP 100000
26#define PORTMAP_PROTO_TCP 6
28#define PORTMAP_PROTO_UDP 17
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
struct oncrpc_cred oncrpc_auth_none
AUTH NONE authentication flavor.
void oncrpc_init_session(struct oncrpc_session *session, struct oncrpc_cred *credential, struct oncrpc_cred *verifier, uint32_t prog_name, uint32_t prog_vers)
Prepare an ONC RPC session structure to be used by the ONC RPC layer.
static void portmap_init_session(struct oncrpc_session *session, struct oncrpc_cred *credential)
Prepare an ONC RPC session to be used as a PORTMAP session.
#define PORTMAP_VERS
PORTMAP version.
int portmap_getport(struct interface *intf, struct oncrpc_session *session, uint32_t prog, uint32_t vers, uint32_t proto)
Send a GETPORT request.
#define ONCRPC_PORTMAP
PORTMAP protocol number.
int portmap_get_getport_reply(struct portmap_getport_reply *getport_reply, struct oncrpc_reply *reply)
Parse a GETPORT reply.
uint32_t port
Port returned.