Check_Item Is Always Equal To 0 When 2^32
Russell Mike
radius.sir at gmail.com
Tue Oct 22 18:27:36 CEST 2013
On Tue, Oct 22, 2013 at 2:57 PM, Alan DeKok <aland at deployingradius.com>wrote:
> 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.
>
Thanks Alan,
i understand that, My NAS support Gigaword attribute,
ChilliSpot-Max-Total-Octets-Gigaword should contain upper 32 bit value of
64 bit number. i am using ChilliSpot-Max-Total-Octets-Gigaword also. No?
*Check: 8GB*
ChilliSpot-Max-Input-Octets - Value 8589934592
ChilliSpot-Max-Input-Gigawords - Value 8589934592
*Reply: **8GB*
ChilliSpot-Max-Input-Octets - Value 8589934592
ChilliSpot-Max-Input-Gigawords - Value 8589934592
which counter is 64 bit ?
-
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20131022/a41da56e/attachment.html>
More information about the Freeradius-Users
mailing list