Changeset View
Changeset View
Standalone View
Standalone View
sys/rpc/krpc.h
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | struct rc_data { | ||||
int rc_connecting; | int rc_connecting; | ||||
int rc_closed; | int rc_closed; | ||||
struct ucred *rc_ucred; | struct ucred *rc_ucred; | ||||
CLIENT* rc_client; /* underlying RPC client */ | CLIENT* rc_client; /* underlying RPC client */ | ||||
struct rpc_err rc_err; | struct rpc_err rc_err; | ||||
void *rc_backchannel; | void *rc_backchannel; | ||||
bool rc_tls; /* Enable TLS on connection */ | bool rc_tls; /* Enable TLS on connection */ | ||||
char *rc_tlscertname; | char *rc_tlscertname; | ||||
void (*rc_reconcall)(CLIENT *, void *, | |||||
struct ucred *); /* reconection upcall */ | |||||
void *rc_reconarg; /* upcall arg */ | |||||
}; | }; | ||||
/* Bits for ct_rcvstate. */ | /* Bits for ct_rcvstate. */ | ||||
#define RPCRCVSTATE_NORMAL 0x01 /* Normal reception. */ | #define RPCRCVSTATE_NORMAL 0x01 /* Normal reception. */ | ||||
#define RPCRCVSTATE_NONAPPDATA 0x02 /* Reception of a non-application record. */ | #define RPCRCVSTATE_NONAPPDATA 0x02 /* Reception of a non-application record. */ | ||||
#define RPCRCVSTATE_TLSHANDSHAKE 0x04 /* Reception blocked for TLS handshake. */ | #define RPCRCVSTATE_TLSHANDSHAKE 0x04 /* Reception blocked for TLS handshake. */ | ||||
#define RPCRCVSTATE_UPCALLNEEDED 0x08 /* Upcall to rpctlscd needed. */ | #define RPCRCVSTATE_UPCALLNEEDED 0x08 /* Upcall to rpctlscd needed. */ | ||||
#define RPCRCVSTATE_UPCALLINPROG 0x10 /* Upcall to rpctlscd in progress. */ | #define RPCRCVSTATE_UPCALLINPROG 0x10 /* Upcall to rpctlscd in progress. */ | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |