Check_Item Is Always Equal To 0 When 2^32

Alan DeKok aland at deployingradius.com
Thu Oct 24 15:53:49 CEST 2013


Russell Mike wrote:
> thank you very very much, it is great explanation. Your response made
> many things very clearer. But did not work for me still. Perhaps my
> formula is wrong. Kindly help one more step further. Honestly, i have
> tried very hard, working on it for some weeks now without results. i.e.
> i want to set 6GB limit.
> 
> total bytes in 6GB = 805306368 
> total bytes in 4GB = 536870912
> 
> i deducted 4GB bytes from 6GB bytes to get upper 32bit number = 268435456 

  Uh... no.  This should be simple math.  You need to DIVIDE by 2^32.
Not SUBTRACT by 2^32.

  Please stop asking simple math questions here.  Buy a calculator or a
book.

  Alan DeKok.


More information about the Freeradius-Users mailing list