From 28df233a46f2d136e8169d86ee62861a7c024eff Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Wed, 29 Aug 2012 11:40:34 +0400 Subject: add 'ppp' filed to CTRL to identify ppp sessions --- accel-pppd/radius/req.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'accel-pppd/radius/req.c') diff --git a/accel-pppd/radius/req.c b/accel-pppd/radius/req.c index cd9a170..a93c12e 100644 --- a/accel-pppd/radius/req.c +++ b/accel-pppd/radius/req.c @@ -29,7 +29,7 @@ static struct rad_req_t *__rad_req_alloc(struct radius_pd_t *rpd, int code, cons return NULL; } - if (rpd->ses->ctrl->type != CTRL_TYPE_IPOE) + if (rpd->ses->ctrl->ppp) ppp = container_of(rpd->ses, typeof(*ppp), ses); memset(req, 0, sizeof(*req)); -- cgit v1.2.3