Re: apache 2.4.x and mod_perl 2.0

Torsten Förtsch <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
On Thursday, 15 March 2012 10:28:39 Brett @Google wrote:
> "modperl_interp.c", line 503: undefined struct/union member: remote_ip

Further, last fall struct conn_rec was changed again in these commits:

$ svn log -r1206291 -r1204968
------------------------------------------------------------------------
r1206291 | minfrin | 2011-11-25 20:42:04 +0100 (Fri, 25 Nov 2011) | 4 lines

Introduce a per connection "peer_ip" and a per request "client_ip" to
distinguish between the raw IP address of the connection and the effective
IP address of the request.

------------------------------------------------------------------------
r1204968 | minfrin | 2011-11-22 14:10:39 +0100 (Tue, 22 Nov 2011) | 4 lines

Introduce a per request version of the remote IP address, which can be
optionally modified by a module when the effective IP of the client
is not the same as the real IP of the client (such as a load balancer).

------------------------------------------------------------------------

These changes were then at least partly backported to httpd 2.4, see

http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/include/httpd.h?r1=1208378&r2=1214022
http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/include/httpd.h?r1=1204743&r2=1208378

IMHO, we should implement a compatibility function that maps remote_ip() to 
client_ip and provide the new structure members independently.

Torsten Förtsch

-- 
Need professional modperl support? Hire me! (http://foertsch.name)

Like fantasy? http://kabatinte.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.