Gigawords
Phil Mayers
p.mayers at imperial.ac.uk
Fri Sep 14 12:03:24 CEST 2007
On Fri, 2007-09-14 at 00:05 -0300, Guilherme Franco wrote:
> Hello,
>
> I'm using rlm_sql_log in freeradius 1.1.4.
>
> In order to correctly work with acct-input/ output gigawords, I've
> replaced '%{Acct-Input-Octets}' with '%{%{Acct-Input-Gigawords}:-0}'
> << 32 | '%{%{Acct-Input-Octets}:-0}' in the rlm_sql_log conf, but this
> results in invalid queries like:
>
> "update radacct set... ...acctiputoctets = 0 << 32 | 98..."
Is that not because you put an invalid query template in?
You need () around the (val << N) bit.
You also almost certain want to do:
(giga << 32) + words
...rather than using bitwise | operator
>
More information about the Freeradius-Users
mailing list