httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kraemer <Martin.Krae...@mch.sni.de>
Subject [PATCH] NET_SIZE_T on 64 bit machines
Date Wed, 03 Jun 1998 15:47:18 GMT
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

Mime
View raw message