diff options
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index e553719..7f92501 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -427,6 +427,9 @@ static void ipoe_session_start(struct ipoe_session *ses) } } + log_ppp_info1("%s: authentication succeeded\n", ses->ses.username); + triton_event_fire(EV_SES_AUTHORIZED, &ses->ses); + if (ses->serv->opt_nat) ses->ses.ipv4 = ipdb_get_ipv4(&ses->ses); @@ -841,6 +844,8 @@ static void ipoe_session_finished(struct ap_session *s) if (ses->dhcpv4) dhcpv4_free(ses->dhcpv4); + + triton_event_fire(EV_CTRL_FINISHED, s); triton_context_call(&ses->ctx, (triton_event_func)ipoe_session_free, ses); } @@ -870,7 +875,7 @@ static struct ipoe_session *ipoe_session_create_dhcpv4(struct ipoe_serv *serv, s { struct ipoe_session *ses; int dlen = 0; - uint8_t *ptr; + uint8_t *ptr = NULL; ses = mempool_alloc(ses_pool); if (!ses) { |