22 Jan
2009
22 Jan
'09
11:48 a.m.
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.