Proper use of Mikrotik-Xmit-Limit-Gigawords

Kwesi Yankson kkwised at yahoo.com
Thu Jan 23 14:21:07 CET 2014


Hi Nick,
Thank for replying.  Correct me if I'm wrong. From your answer, assuming I want 11GB of data, I need to set Mikrotik-Xmit-Limit to 3GB and Mikrotik-Xmit-Limit-Gigawords to 2 (that is 8GB).  That is speaking in simpler terms (with no 0C0000x@#$%^%) :)
If that is so, it mean Mikrotik-Xmit-Limit will be a "check" attribute whiles Mikrotik-Xmit-Limit-Gigawords will be a "reply" attribute".
How right or wrong am I so far?





On Thursday, January 23, 2014 7:23 AM, Nick Lowe <nick.lowe at gmail.com> wrote:
 
Typo, Mikrotik-Xmit-Limit and Mikrotik-Xmit-Limit-Gigawords.


On Thu, Jan 23, 2014 at 3:20 PM, Nick Lowe <nick.lowe at gmail.com> wrote:
> You need to use both Mikrotik-Xmit-Limit-Gigawords and
> Mikrotik-Xmit-Limit-Gigawords...
>
> Taking 11 GiB as an example:
>
> For Mikrotik-Xmit-Limit:
>
> (11 * 0x40000000) & 0xFFFFFFFF) = 0xC0000000
> -or-
> (11 * 1073741824) & 4294967295) = 3221225472
>
> For Mikrotik-Xmit-Limit-Gigawords:
>
> (11 * 0x40000000) >> 32 = 0x2
> -or-
> (11 * 1073741824) >> 32 = 2
>
> Nick
>
> On Thu, Jan 23, 2014 at 11:14 AM, Kwesi Yankson <kkwised at yahoo.com> wrote:
>> Hi,
>> I've been following the postings in this mailing list for a while (mostly on
>> FR 3.x) so please forgive me for asking this "basic" stuff.
>> I want to use FreeRADIUS to limit user data above 4GB, of course the right
>> attribute is Mikrotik-Xmit-Limit-Gigawords.  The documentation explains it
>> as 4G (2^32). I get that.
>>
>> My question is (and forgive me if it sounds silly to some of you), assuming
>> I want to limit data such as 10GB, 11GB and such figures, how am I supposed
>> to approach it using Mikrotik-Xmit-Limit-Gigawords.
>>
>> Thank you
>>
>> -
>> 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/20140123/926c7e37/attachment.html>


More information about the Freeradius-Users mailing list