Hi,

I am using freeRADIUS verison 2.1.9.

I am trying to add some attribute in proxy-reply, I want to do it only if it is Access-Accept packet. I am trying to achieve it using unlang.
I have tried following options and none of them have worked

if (%{proxy-reply:Packet-Type} == 2) {
}

if(proxy-reply:Packet-Type == "Access-Accept"){
}

if(reply:Packet-Type == "Access-Accept"{
}

if(proxy-reply:Packet-Type == "2"){
}

Tue Sep 14 06:34:14 2010 : Info: +- entering group post-proxy {...}
Tue Sep 14 06:34:14 2010 : Info: ++? if (proxy-reply:Packet-Type == "2")
Tue Sep 14 06:34:14 2010 : Info: (Attribute proxy-reply:Packet-Type was not found)

I have read there is meta-attribute as Packet-Type but do not know how to access it,  please point me to document which explains meta-attribute or suggest me how do I access packet-type
 

--
Chidanand Gangur
Pune.