mirror of
https://github.com/paulusmack/ppp.git
synced 2024-11-27 05:23:38 +08:00
Handle RADIUS Session-Timeout attribute.
This commit is contained in:
parent
d0f67b16e6
commit
96705f5afd
@ -21,7 +21,7 @@
|
||||
*
|
||||
***********************************************************************/
|
||||
static char const RCSID[] =
|
||||
"$Id: radius.c,v 1.6 2002/03/05 15:14:05 dfs Exp $";
|
||||
"$Id: radius.c,v 1.7 2002/03/12 00:28:56 dfs Exp $";
|
||||
|
||||
#include "pppd.h"
|
||||
#include "chap.h"
|
||||
@ -476,6 +476,10 @@ radius_setparams(chap_state *cstate, VALUE_PAIR *vp, char *msg)
|
||||
vp->lvalue, rstate.user);
|
||||
return -1;
|
||||
}
|
||||
} else if ((vp->attribute == PW_SESSION_TIMEOUT) &&
|
||||
(vp->vendorcode == VENDOR_NONE)) {
|
||||
/* Session timeout */
|
||||
maxconnect = vp->lvalue;
|
||||
} else if ((vp->attribute == PW_FRAMED_IP_ADDRESS) &&
|
||||
(vp->vendorcode == VENDOR_NONE)) {
|
||||
/* seting up remote IP addresses */
|
||||
|
Loading…
Reference in New Issue
Block a user