about summary refs log tree commit diff
path: root/src/libwpactrl/wpactrl_xchg_init.c
blob: 2e2f3916035b237ef361a873717f2d6e3c2e744a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* ISC license. */

#include <errno.h>
#include <skalibs/stralloc.h>
#include <bcnm/wpactrl.h>

void wpactrl_xchg_init (wpactrl_xchg_t *dt, wpactrl_xchgitem_t const *tab, unsigned int n, tain_t const *limit, void *aux)
{
  dt->sa.len = 0 ;
  dt->tab = tab ;
  dt->n = n ;
  dt->i = 0 ;
  dt->deadline = *limit ;
  dt->status = ECONNABORTED ;
  dt->aux = aux ;
}