}
switch(acctstatustype){
case PW_STATUS_STOP:
- if ((vp = pairfind(request->packet->vps, PW_NAS_PORT_ID)) != NULL)
+ if ((vp = pairfind(request->packet->vps, PW_NAS_PORT)) != NULL)
port = vp->lvalue;
else {
DEBUG("rlm_ippool: Could not find port number in packet.");
* Find the port
* If not fail
*/
- if ((vp = pairfind(request->packet->vps, PW_NAS_PORT_ID)) != NULL)
+ if ((vp = pairfind(request->packet->vps, PW_NAS_PORT)) != NULL)
port = vp->lvalue;
else{
DEBUG("rlm_ippool: Could not find port information.");
* approaching rationality.
*/
ascend_nasport_hack(pairfind(request->packet->vps,
- PW_NAS_PORT_ID),
+ PW_NAS_PORT),
data->ascend_channels_per_line);
}
case PW_NAS_IP_ADDRESS:
nas_address = vp->lvalue;
break;
- case PW_NAS_PORT_ID:
+ case PW_NAS_PORT:
nas_port = vp->lvalue;
port_seen = 1;
break;
/*
* We don't store !root sessions, or sessions
- * where we didn't see a PW_NAS_PORT_ID.
+ * where we didn't see a NAS-Port attribute.
*/
if (strncmp(ut.ut_name, "!root", sizeof(ut.ut_name)) == 0 || !port_seen)
return RLM_MODULE_NOOP;