diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2020-04-07 11:08:12 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2020-04-07 11:08:12 +0300 |
commit | b8f8becfd5cdbf3399fed2867c22dccb16a80aa8 (patch) | |
tree | 5118ffa2dd58e68086954b85c859498b0e9be09a /accel-pppd/radius | |
parent | b2de172cb0023d6bcf049cc2c68e95039ef84ffd (diff) | |
parent | 7a9e1de558c188d420e39165119e92915af2b3d7 (diff) | |
download | accel-ppp-xebd-b8f8becfd5cdbf3399fed2867c22dccb16a80aa8.tar.gz accel-ppp-xebd-b8f8becfd5cdbf3399fed2867c22dccb16a80aa8.zip |
Merge branch 'master' of github.com:xebd/accel-ppp
Diffstat (limited to 'accel-pppd/radius')
-rw-r--r-- | accel-pppd/radius/radius.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c index e5a65a5..e3fe4b3 100644 --- a/accel-pppd/radius/radius.c +++ b/accel-pppd/radius/radius.c @@ -316,7 +316,7 @@ int rad_proc_attrs(struct rad_req_t *req) case Framed_IP_Address: if (!conf_gw_ip_address && rpd->ses->ctrl->ppp) log_ppp_warn("radius: gw-ip-address not specified, cann't assign IP address...\n"); - else if (attr->val.ipaddr != 0xfffffffe) { + else if (attr->val.ipaddr != htonl(0xfffffffe)) { rpd->ipv4_addr.owner = &ipdb; rpd->ipv4_addr.peer_addr = attr->val.ipaddr; rpd->ipv4_addr.addr = rpd->ses->ctrl->ppp ? conf_gw_ip_address : 0; @@ -817,7 +817,8 @@ struct radius_pd_t *rad_find_session_pack(struct rad_packet_t *pack) port_id = attr->val.string; break; case Framed_IP_Address: - ipaddr = attr->val.ipaddr; + if (attr->val.ipaddr != htonl(0xfffffffe)) + ipaddr = attr->val.ipaddr; break; case Calling_Station_Id: csid = attr->val.string; |