summaryrefslogtreecommitdiff
path: root/accel-pppd/radius/radius.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2013-08-14 21:53:30 +0400
committerDmitry Kozlov <xeb@mail.ru>2013-08-14 21:59:30 +0400
commit7b6848214631dca37444fe3ed53d152b2584564f (patch)
treec97cf72770282dea5cc9a0253198955cf46ffddf /accel-pppd/radius/radius.c
parent7e56163b5b36160d51082ef6c81901aca32874b0 (diff)
downloadaccel-ppp-7b6848214631dca37444fe3ed53d152b2584564f.tar.gz
accel-ppp-7b6848214631dca37444fe3ed53d152b2584564f.zip
radius: don't assign address if Framed-IP-Address=255.255.255.254
Diffstat (limited to 'accel-pppd/radius/radius.c')
-rw-r--r--accel-pppd/radius/radius.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c
index d317bf92..b7fec28e 100644
--- a/accel-pppd/radius/radius.c
+++ b/accel-pppd/radius/radius.c
@@ -93,7 +93,8 @@ int rad_proc_attrs(struct rad_req_t *req)
case Framed_IP_Address:
if (!conf_gw_ip_address && req->rpd->ses->ctrl->ppp)
log_ppp_warn("radius: gw-ip-address not specified, cann't assign IP address...\n");
- else {
+ else if (attr->val.ipaddr != 0xfffffffe) {
+ req->rpd->ipv4_addr.owner = &ipdb;
req->rpd->ipv4_addr.peer_addr = attr->val.ipaddr;
req->rpd->ipv4_addr.addr = conf_gw_ip_address;
}