Code: Select all
[...]
rx_client_state_t rx_client_state_lp[n_rx_lp];
init_rx_client_state(rx_client_state_lp, n_rx_lp);
[...]
void init_rx_client_state(rx_client_state_t client_state[n], unsigned n)
{
for (int i = 0; i < n; i ++) {
client_state[i].dropped_pkt_cnt = 0;
client_state[i].rd_index = 0;
[...]
Ou nevermind, i found the answer in this topic