#
# SOURCES
#

source (port=1812,
	port=1813),

#source (port=1645, addr=127.0.0.1,
#	 port=1646, addr=127.0.0.1),


#
# INTERFACES
#

interface (name="Acctlogger",
	   sendattr="str",
	   sendattr="User-Name",
	   sendattr="Calling-Station-Id",
	   sendattr="Called-Station-Id",
	   sendattr="NAS-Port",
	   sendattr="NAS-Port-Type",
	   sendattr="NAS-IP-Address", 
	   sendattr="NAS-Identifier",
	   sendattr="Acct-Status-Type",
	   sendattr="Acct-Session-Id",
	   sendattr="Record-Unique-Key",
	   sendattr="Session-Key",
	   sendattr="Acct-Input-Octets",
	   sendattr="Acct-Output-Octets",
	   sendattr="Acct-Input-Packets",
	   sendattr="Acct-Output-Packets",
	   sendattr="Acct-Terminate-Cause",
	   sendattr="Timestamp",
	   sendattr="Acct-Delay-Time",
	   sendattr="Acct-Session-Time",
	   sendattr="Acct-Authentic",
	   sendattr="Acct-Authenticator",
	   sendattr="Class",
	   prog="radlogger /tmp/radacct.log",
	   recvattr="int",
	   flags=Ascii + Short-Attr + Named-Const + Double-Backslash,
	   timeout=15),

interface (name="Clientsfile",
	   sendattr="str",
	   #prog="ascfile -d legacy/clients",
	   prog="ascfile legacy/clients",
	   recvattr="int",
	   recvattr="str",
	   flags=Ascii + Short-Attr,
	   timeout=15),

interface (name="Nasesfile",
	   sendattr="str",
	   prog="ascfile legacy/nases",
	   recvattr="int",
	   recvattr="str",
	   flags=Ascii + Short-Attr,
	   timeout=15),

interface (name="Realmsfile",
	   sendattr="str",
	   prog="ascfile legacy/realms",
	   flags=Ascii + Short-Attr,
	   timeout=15),

interface (name="Usersfile",
	   sendattr="str",
	   #prog="ascfile -d legacy/users",
	   prog="ascfile legacy/users",
	   flags=Ascii + Short-Attr,
	   timeout=15),

# Do not call this 'Proxy' as it will have a very funny effect on the
# working of the Proxy-State attribute. I know, that shouldn't be the case.
interface (name="Radiusclient",
	   prog="radclient -C",
	   flags=Ascii + Short-Attr,
	   window=256,
	   jobticket="Radclient-Query-Id",
	   timeout=300)				# interface guard timeout

