blob: 8b80e4430d00563d77e8c7762305d01e8ec15f8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/* ISC license. */
#include <errno.h>
#include <skalibs/tai.h>
#include <bcnm/wpactrl.h>
int wpactrl_xchg_timeout (wpactrl_t *a, wpactrl_xchg_t *dt, tain const *stamp)
{
if (!tain_less(stamp, &dt->deadline))
{
dt->status = ETIMEDOUT ;
wpactrl_filter_remove(a, dt->tab[dt->i].filter) ;
return 1 ;
}
else return 0 ;
}
|