summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2018-03-03 12:06:06 +0300
committerDmitry Kozlov <xeb@mail.ru>2018-03-03 12:06:06 +0300
commit6e7c20d8b1eaca421793cc3876c84a0ab718282e (patch)
treec233c3ee360f9168529117f1140fd19413f80014
parent8ab2f623fa1d11a2aaec35226cb7a1456fc257d8 (diff)
downloadaccel-ppp-6e7c20d8b1eaca421793cc3876c84a0ab718282e.tar.gz
accel-ppp-6e7c20d8b1eaca421793cc3876c84a0ab718282e.zip
pppoe: fixed PADO delaying function
-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);