reference packet code in unlang?

Alan DeKok aland at deployingradius.com
Tue Apr 22 16:34:41 CEST 2008


Stefan Winter wrote:
> Using the following in preacct threw a parser error. Maybe I'm just
> blind. I don't see the syntax error:

  The parse is bad...

> if (Acct-Status-Type == "Accounting-Off" && !(Acct-Session-Id =~
> "restena.*")) update control {
> ~                       Proxy-To-Realm := testrealm.lu
> ~               }
> 
> (first and second line wrapped)

  if ((Acct-Status-Type == "Accounting-Off") && !(Acct-....)) {
	update control {
		Proxy-To-Realm...
	}
  }

  Remember, this isn't C.  It's a line-based parser.  Everything goes on
one line, and you can't put "if" and "update" on the same line.

  Alan DeKok.



More information about the Freeradius-Users mailing list