Lengths

Alan DeKok aland at ox.org
Wed Sep 14 17:49:17 CEST 2005


"Iandc Davies" <Iandc.Davies at Marconi.com>wrote:
> My reason for this question is that I'm trying to rationalise an example
> I've got. I.e. how do you get 164

  Please read the RFC's, and src/lib/radius.c, function rad_send().

> Attributes:
>                 NAS-IP-Address            =d5 89 45 26
>       4

  No.  It's 6.

>                 NAS-PORT-TYPE       =5 (virtual)
> 1

  No, that's also 6.

  The attributes are packed into the packet with per-attribute headers
and lengths.  Run "ethereal" on some RADIUS traffic to see for yourself.

  Alan DeKok.




More information about the Freeradius-Users mailing list