]> git.ozlabs.org Git - ppp.git/commitdiff
Handle RADIUS Session-Timeout attribute.
authorDavid F. Skoll <dfs@roaringpenguin.com>
Tue, 12 Mar 2002 00:28:56 +0000 (00:28 +0000)
committerDavid F. Skoll <dfs@roaringpenguin.com>
Tue, 12 Mar 2002 00:28:56 +0000 (00:28 +0000)
pppd/plugins/radius/radius.c

index a36c34311bb0812d840a76753b07c91bfd9c354a..06f59ffc24747ac5eef148b01fd40ce6ffb1323f 100644 (file)
@@ -21,7 +21,7 @@
 *
 ***********************************************************************/
 static char const RCSID[] =
 *
 ***********************************************************************/
 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"
 
 #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;
            }
                         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 */
        } else if ((vp->attribute == PW_FRAMED_IP_ADDRESS) &&
                   (vp->vendorcode == VENDOR_NONE)) {
            /* seting up remote IP addresses */