14 Sep
2007
14 Sep
'07
6:03 a.m.
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