[PATCH] passing of remote client ip as ipparam
Page 1 of 1

Author:  jkroon [ Sat Jun 04, 2011 9:52 pm ]
Post subject:  [PATCH] passing of remote client ip as ipparam

Hi All,

I've just been cooking up a patch to pass the connecting client's IP address as ipparam to pppd. The radius plugin for pppd passes the ipparam as the Calling-Station-Id tag, so what I would like to see on the radius side is something like this:

Calling-Station-Id = ""

Which can then be logged as part of the radius session logs. One could even use it as part of the authentication/authorization phase on the radius side.

Patch available at

As it stands it will apply cleanly after applying the optionsfile patch too. This is unfortunate but it touches many of the same code paths.

One thing that worries me ever so slightly is that there might be memory leaks based on the strdup() calls in ppp_unix_params_to_argv in plugins/ - unless this is invoked after the daemon fork(2)s but before execve*(2).

Author:  jchapman [ Sun Jun 05, 2011 12:06 am ]
Post subject:  Re: [PATCH] passing of remote client ip as ipparam

Another useful patch. Thanks!

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group