fix RADIUS indexing (should have 16K entries with 64 sockets)
This commit is contained in:
parent
52cb7687d3
commit
af44e3e3bc
5 changed files with 15 additions and 13 deletions
8
l2tpns.c
8
l2tpns.c
|
|
@ -4,7 +4,7 @@
|
|||
// Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced
|
||||
// vim: sw=8 ts=8
|
||||
|
||||
char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.103 2005/05/13 01:29:40 bodea Exp $";
|
||||
char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.104 2005/05/16 04:51:16 bodea Exp $";
|
||||
|
||||
#include <arpa/inet.h>
|
||||
#include <assert.h>
|
||||
|
|
@ -1566,7 +1566,7 @@ void sendipcp(tunnelidt t, sessionidt s)
|
|||
if (!q) return;
|
||||
|
||||
*q = ConfigReq;
|
||||
q[1] = r << RADIUS_SHIFT; // ID, dont care, we only send one type of request
|
||||
q[1] = r >> RADIUS_SHIFT; // ID, dont care, we only send one type of request
|
||||
*(uint16_t *) (q + 2) = htons(10);
|
||||
q[4] = 3;
|
||||
q[5] = 6;
|
||||
|
|
@ -1588,7 +1588,7 @@ void sendipcp(tunnelidt t, sessionidt s)
|
|||
if (!q) return;
|
||||
|
||||
*q = ConfigReq;
|
||||
q[1] = r << RADIUS_SHIFT; // ID, don't care, we
|
||||
q[1] = r >> RADIUS_SHIFT; // ID, don't care, we
|
||||
// only send one type
|
||||
// of request
|
||||
*(uint16_t *) (q + 2) = htons(14);
|
||||
|
|
@ -4005,7 +4005,7 @@ static void update_config()
|
|||
if (!config->numradiusservers)
|
||||
LOG(0, 0, 0, "No RADIUS servers defined!\n");
|
||||
|
||||
config->num_radfds = 2 << RADIUS_SHIFT;
|
||||
config->num_radfds = 1 << RADIUS_SHIFT;
|
||||
|
||||
// parse radius_authtypes_s
|
||||
config->radius_authtypes = config->radius_authprefer = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue