5 #include "maps.h" // page_rand
8 #include "trinity.h" // ARRAY_SIZE
12 #ifndef USE_LLC_OPT_PKTINFO
13 #define LLC_OPT_PKTINFO LLC_OPT_UNKNOWN
16 #define NR_SOL_LLC_OPTS ARRAY_SIZE(llc_opts)
17 static const unsigned int llc_opts
[] = {
18 LLC_OPT_RETRY
, LLC_OPT_SIZE
, LLC_OPT_ACK_TMR_EXP
, LLC_OPT_P_TMR_EXP
,
19 LLC_OPT_REJ_TMR_EXP
, LLC_OPT_BUSY_TMR_EXP
, LLC_OPT_TX_WIN
, LLC_OPT_RX_WIN
,
23 void llc_setsockopt(struct sockopt
*so
)
29 val
= rand() % NR_SOL_LLC_OPTS
;
30 so
->optname
= llc_opts
[val
];