Salut Gildas -

On Mon, 09 Oct 2000, Gildas PERROT wrote:
> Salut Hugues,
> 
> OK, I see what changes I need to make to allocate and deallocate in
> Radius/AddressAllocatorSQL.pm. However, I would lke to know where I need to
> make changes in order to pass $callerid to those routines ?
> 

You do not have to pass anything to the routines in AddressAllocatorSQL.pm, as
a pointer to the current packet is passed in as "$p". You can retrieve any
attribute from the packet like this:

        my $callerid = $p->getAttrByNum($Radius::Radius::CALLING_STATION_ID);
                                                               
hth

Hugh

-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.



===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to