blob: fd9939041375b8b23870f7546c51fa9b860e3541 (
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_t 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 ;
}
|