Nas-Ip-Address attribute and source IP address of UDP datagram.
    Alan DeKok 
    aland at deployingradius.com
       
    Thu Jan 22 17:48:47 CET 2009
    
    
  
Dmitry V. Krivenok wrote:
> It looks cool.
> Where can I use this code?
> In authorize section?
  Anywhere.
> request->client->ipaddr seems to be what I need.
  It may *not* be the same as request->packet->src_ipaddr.  The client
IP address may be a netmask, and not a /32.
> I tested via the following command:
> DEBUG("rlm_osb: Source IP address %s.",
> inet_ntoa(request->client->ipaddr.ipaddr.ip4addr));
> 
> Is it correct to use request->client->ipaddr instead of
> request->packet->src_ipaddr?
  No.
  There's a *reason* I said use request->packet->src_ipaddr.  I'm
curious why you went looking for something else, rather than just use
what I told you.
  Alan DeKok.
    
    
More information about the Freeradius-Users
mailing list