Check_Item Is Always Equal To 0 When 2^32

Alan DeKok aland at deployingradius.com
Tue Oct 22 16:57:04 CEST 2013


Russell Mike wrote:
> If I put a value lesser than 2^32. i.e. 4294967290 for
> “ChilliSpot-Max-Total-Octets” in radgroupcheck, value can be read by
> FreeRadius and check_item has the correct value (4294967290). If I put
> value bigger than 2^32, (8589934592) check_item is always equal to 0.

  "integer" in RADIUS is 32-bits.  So you can't get a number larger than
2^32-1 into ChilliSpot-Max-Total-Octets.

  You will need to use  64-bit counter.

  Alan DeKok.


More information about the Freeradius-Users mailing list