- case RADIUSCHAP: // sending CHAP down PPP
- sendchap(t, s);
- break;
- case RADIUSIPCP:
- sendipcp(t, s); // send IPCP
- break;
- case RADIUSAUTH: // sending auth to RADIUS server
- radiussend(r, RADIUSAUTH);
- break;
- case RADIUSSTART: // sending start accounting to RADIUS server
- radiussend(r, RADIUSSTART);
- break;
- case RADIUSSTOP: // sending stop accounting to RADIUS server
- radiussend(r, RADIUSSTOP);
- break;
- default:
- case RADIUSNULL: // Not in use
- case RADIUSWAIT: // waiting timeout before available, in case delayed reply from RADIUS server
- // free up RADIUS task
- radiusclear(r, s);
- log(3, 0, s, session[s].tunnel, "Freeing up radius session %d\n", r);
- break;
- }
-}
-
-void radius_clean()
-{
- int i;
-
- log(1, 0, 0, 0, "Cleaning radius session array\n");
-
- for (i = 1; i < MAXRADIUS; i++)
- {
- if (radius[i].retry == 0
- || !session[radius[i].session].opened
- || session[radius[i].session].die
- || session[radius[i].session].tunnel == 0)
- radiusclear(i, 0);
+ case RADIUSCHAP: // sending CHAP down PPP
+ sendchap(t, s);
+ break;
+ case RADIUSIPCP:
+ sendipcp(t, s); // send IPCP
+ break;
+ case RADIUSAUTH: // sending auth to RADIUS server
+ radiussend(r, RADIUSAUTH);
+ break;
+ case RADIUSSTART: // sending start accounting to RADIUS server
+ radiussend(r, RADIUSSTART);
+ break;
+ case RADIUSSTOP: // sending stop accounting to RADIUS server
+ radiussend(r, RADIUSSTOP);
+ break;
+ default:
+ case RADIUSNULL: // Not in use
+ case RADIUSWAIT: // waiting timeout before available, in case delayed reply from RADIUS server
+ // free up RADIUS task
+ radiusclear(r, s);
+ LOG(3, 0, s, session[s].tunnel, "Freeing up radius session %d\n", r);
+ break;