Check_Item Is Always Equal To 0 When 2^32
Yazan Jaber
yazan.jaber at newroztelecom.com
Wed Oct 23 11:12:34 CEST 2013
Hi Alan,
I tried to communicate with you thru your email but I didn't get any response, did you receive my emails.
Thanks,
-----Original Message-----
From: freeradius-users-bounces+yazan.jaber=newroztelecom.com at lists.freeradius.org [mailto:freeradius-users-bounces+yazan.jaber=newroztelecom.com at lists.freeradius.org] On Behalf Of Alan DeKok
Sent: Tuesday, October 22, 2013 9:35 PM
To: FreeRadius users mailing list
Subject: Re: Check_Item Is Always Equal To 0 When 2^32
Russell Mike wrote:
> 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?
Yes.
> *Check: 8GB*
> ChilliSpot-Max-Input-Octets - Value 8589934592
> ChilliSpot-Max-Input-Gigawords - Value 8589934592
Uh... no.
> which counter is 64 bit ?
Did you read what you wrote at the start of the message? This isn't rocket science. It's simple math.
The "octets" attribute is the lower 32 bits of a 64-bit counter. The "gigawords" attribute is the upper 32 bits of a 64-bit counter.
If you want to set a limit, write it down as a 64-bit number. Put the upper 32 bits into the "gigawords" attribute. Put the lower 32 bits into the "octets" attributes.
I can't make it any clearer than that.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list