Data limit

Herwin Weststrate herwin at quarantainenet.nl
Fri Jul 3 14:09:43 CEST 2015


On 03-07-15 12:59, Randeep wrote:
> Hi Newton,
> 
> We are using this parameter only for a "if" condition check. We are not
> sending this value to Mikrotik.
> 
> If the SUM(acctinputoctets)+SUM(acctoutputoctets) > Max-Data, we are
> sending the Mikrotik-Rate-Limit to the Mikrotik to reduce the speed.
> 
> But the issue is We are not able to set more than 4G to Max-Data.

Is Max-Data defined as an integer? If so, it is a 32bit unsigned
integer, and 4G is the maximum value that fits in there. Change it to a
integer64, or perform some magic with splitting it into two values with
bitshifting operations. The first option is probably the easiest.

-- 
Herwin Weststrate



More information about the Freeradius-Users mailing list