projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9d6f24b
)
Updated API for 2.2.
author
Alan T. DeKok
<aland@freeradius.org>
Fri, 29 Oct 2010 17:45:57 +0000
(13:45 -0400)
committer
Alan T. DeKok
<aland@freeradius.org>
Fri, 29 Oct 2010 17:45:57 +0000
(13:45 -0400)
src/modules/rlm_ippool/rlm_ippool.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_ippool/rlm_ippool.c
b/src/modules/rlm_ippool/rlm_ippool.c
index
3a42427
..
6d811ea
100644
(file)
--- a/
src/modules/rlm_ippool/rlm_ippool.c
+++ b/
src/modules/rlm_ippool/rlm_ippool.c
@@
-569,7
+569,7
@@
static int ippool_postauth(void *instance, REQUEST *request)
{
/* Override supplied Framed-IP-Address */
RDEBUG("override is set to yes. Override the existing Framed-IP-Address attribute.");
{
/* Override supplied Framed-IP-Address */
RDEBUG("override is set to yes. Override the existing Framed-IP-Address attribute.");
- pairdelete(&request->reply->vps, PW_FRAMED_IP_ADDRESS);
+ pairdelete(&request->reply->vps, PW_FRAMED_IP_ADDRESS
, 0
);
} else {
/* Abort */
RDEBUG("override is set to no. Return NOOP.");
} else {
/* Abort */
RDEBUG("override is set to no. Return NOOP.");
@@
-775,7
+775,7
@@
static int ippool_postauth(void *instance, REQUEST *request)
RDEBUG("Allocated ip %s to client key: %s",ip_ntoa(str,entry.ipaddr),hex_str);
vp = radius_paircreate(request, &request->reply->vps,
RDEBUG("Allocated ip %s to client key: %s",ip_ntoa(str,entry.ipaddr),hex_str);
vp = radius_paircreate(request, &request->reply->vps,
- PW_FRAMED_IP_ADDRESS, PW_TYPE_IPADDR);
+ PW_FRAMED_IP_ADDRESS,
0,
PW_TYPE_IPADDR);
vp->vp_ipaddr = entry.ipaddr;
/*
vp->vp_ipaddr = entry.ipaddr;
/*
@@
-784,7
+784,7
@@
static int ippool_postauth(void *instance, REQUEST *request)
*/
if (pairfind(request->reply->vps, PW_FRAMED_IP_NETMASK, 0) == NULL) {
vp = radius_paircreate(request, &request->reply->vps,
*/
if (pairfind(request->reply->vps, PW_FRAMED_IP_NETMASK, 0) == NULL) {
vp = radius_paircreate(request, &request->reply->vps,
- PW_FRAMED_IP_NETMASK,
+ PW_FRAMED_IP_NETMASK,
0,
PW_TYPE_IPADDR);
vp->vp_ipaddr = ntohl(data->netmask);
}
PW_TYPE_IPADDR);
vp->vp_ipaddr = ntohl(data->netmask);
}