4
#include "utils.h" // ARRAY_SIZE
8
#define NR_SOL_RXRPC_OPTS ARRAY_SIZE(rxrpc_opts)
9
static const unsigned int rxrpc_opts[] = {
10
RXRPC_USER_CALL_ID, RXRPC_ABORT, RXRPC_ACK, RXRPC_NET_ERROR,
11
RXRPC_BUSY, RXRPC_LOCAL_ERROR, RXRPC_NEW_CALL, RXRPC_ACCEPT };
13
void rxrpc_setsockopt(struct sockopt *so)
17
so->level = SOL_RXRPC;
19
val = rand() % NR_SOL_RXRPC_OPTS;
20
so->optname = rxrpc_opts[val];