summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/pppoe
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/ctrl/pppoe')
-rw-r--r--accel-pppd/ctrl/pppoe/pppoe.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/pppoe/pppoe.c b/accel-pppd/ctrl/pppoe/pppoe.c
index 11a6ea1f..7ab20e35 100644
--- a/accel-pppd/ctrl/pppoe/pppoe.c
+++ b/accel-pppd/ctrl/pppoe/pppoe.c
@@ -1055,7 +1055,8 @@ static void pppoe_recv_PADI(struct pppoe_serv_t *serv, uint8_t *pack, int size)
pado->ppp_max_payload = ppp_max_payload;
pado->timer.expire = pado_timer;
- pado->timer.period = pado_delay;
+ pado->timer.expire_tv.tv_sec = pado_delay / 1000;
+ pado->timer.expire_tv.tv_usec = (pado_delay % 1000) * 1000;
triton_timer_add(&serv->ctx, &pado->timer, 0);