Antw: Re: How many NAS kann radius take?

Arran Cudbard-Bell a.cudbardb at freeradius.org
Fri Feb 14 10:56:04 CET 2014


On 14 Feb 2014, at 08:00, Alan Buxey <A.L.M.Buxey at LBORO.AC.UK> wrote:

> Enormously? ?? Is the huntgroup file dynamically read all the time?

No.

It's O(n) as previously stated.

Looking something up in a huntgroup means iterating over every member 
of the linked list (worst case) and evaluating the condition each time
to see if it matched.

> I thought it was read at server start time and the values then populated into a lookup table....?

There's no hashing or treeing or anything fancy, just a plain linked list.

But people get really horny about it like it's *the* ultimate super
efficient NAS categorisation mechanism. It's not, it's shit, it needs 
to go away.

Using the client xlat is significantly more efficient. There's also the
getclient xlat which allows client lookups using arbitrary IP addresses.

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team

FD31 3077 42EC 7FCD 32FE 5EE2 56CF 27F9 30A8 CAA2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 881 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20140214/67b77bba/attachment-0001.pgp>


More information about the Freeradius-Users mailing list