diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2013-08-14 21:53:30 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-08-14 21:53:30 +0400 |
commit | ceb6d69bc2c2ad668bd31e1562af5bb784005455 (patch) | |
tree | b5f6c6a5c24b398a16e0c0cfabb1c5e18a7a7b56 /accel-pppd | |
parent | 15fa3651e11fbf36ab3649860a31be936919bb1e (diff) | |
download | accel-ppp-ceb6d69bc2c2ad668bd31e1562af5bb784005455.tar.gz accel-ppp-ceb6d69bc2c2ad668bd31e1562af5bb784005455.zip |
radius: don't assign address if Framed-IP-Address=255.255.255.254
Diffstat (limited to 'accel-pppd')
-rw-r--r-- | accel-pppd/radius/radius.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c index 57916f07..05d2e56d 100644 --- a/accel-pppd/radius/radius.c +++ b/accel-pppd/radius/radius.c @@ -92,7 +92,7 @@ int rad_proc_attrs(struct rad_req_t *req) case Framed_IP_Address: if (!conf_gw_ip_address) 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; |