On Tue, Oct 22, 2013 at 2:57 PM, Alan DeKok <aland@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