20 #define ONCRPC_AUTH_NONE 0 23 #define ONCRPC_AUTH_SYS 1 26 #define ONCRPC_HEADER_SIZE ( 11 * sizeof ( uint32_t ) ) 28 #define ONCRPC_FIELD( type, value ) { oncrpc_ ## type, { .type = value } } 29 #define ONCRPC_SUBFIELD( type, args... ) \ 30 { oncrpc_ ## type, { .type = { args } } } 32 #define ONCRPC_FIELD_END { oncrpc_none, { } } 35 #define oncrpc_align( size ) ( ( (size) + 3 ) & ~3 ) 43 #define oncrpc_strlen( str ) ( oncrpc_align ( strlen ( str ) ) + \ size_t oncrpc_compute_size(const struct oncrpc_field fields[])
struct oncrpc_cred oncrpc_auth_none
AUTH NONE authentication flavor.
struct oncrpc_cred * verifier
struct oncrpc_cred * verifier
int oncrpc_get_reply(struct oncrpc_session *session, struct oncrpc_reply *reply, struct io_buffer *io_buf)
struct oncrpc_field_value::@632 array
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.
union oncrpc_field_value value
int oncrpc_call(struct interface *intf, struct oncrpc_session *session, uint32_t proc_name, const struct oncrpc_field fields[])
enum oncrpc_field_type type
int oncrpc_init_cred_sys(struct oncrpc_cred_sys *auth_sys)
Initialize an ONC RPC AUTH SYS credential structure.
struct oncrpc_field_value::@633 intarray
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
struct oncrpc_cred * credential
struct oncrpc_cred credential
const struct oncrpc_cred * cred
struct oncrpc_reply pending_reply