I noticed the problem on a 64 bit machine (with apache-1.3.0) that all log
file entries only logged accesses from addr 0.0.0.0.
Tracking down the problem showed that the 64 bit versions of accept(),
bind() et al. need an "int *" as length parameter instead of a "size_t *".
Since this is a big endian machine (MIPS EB) the size was interpreted
as zero and the IP address of the caller was discarded.
The patch below fixes it _for_this_machine_ (because setting the 64 bit
compilation mode sets the compiler #define __LP64__). I wonder how other
64 bit compilers do it.
Martin
--
| S I E M E N S | <Martin.Kraemer@mch.sni.de> | Siemens Nixdorf
| ------------- | Voice: +49-89-636-46021 | Informationssysteme AG
| N I X D O R F | FAX: +49-89-636-44994 | 81730 Munich, Germany
~~~~~~~~~~~~~~~~My opinions only, of course; pgp key available on request
|