Modifying FreeRADIUS queries [from the wiki]

Alan DeKok aland at deployingradius.com
Thu Mar 11 17:28:50 CET 2010


Jeff Wark wrote:
> I understand the left shifting of the Gigawords value and the subsequent
> 'or'-ing of the Acct-Input-Octets value to produce one 64-bit value. 
> The part that confuses me is the repeated occurrence of the ':-0' at the
> end of each variable.  What is the purpose of this?  I have seen it on
> other pages used with other variable substitutions.  I have also seen
> the above Gigawords entry done without the ':-0' [only once though].  I
> would rather understand the purpose behind the entry rather than blindly
> copying it.

$ man unlang

  It means that a number (0) exists in that place, even if the attribute
isn't in the packet.

  Alan DeKok.



More information about the Freeradius-Users mailing list