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 Re: [PATCH] Intranet Patch to Apache-1.2.1
Date Thu, 17 Jul 1997 10:43:10 GMT
On Wed, Jul 16, 1997 at 11:05:18PM -0700, Dean Gaudet wrote:
> Is the SINIX_D_RESOLVER_BUG part of this patch a bugfix?  What's the bug
> you're working around?  (Curious if we need to do it elsewhere.) 

Oh, sorry, I left that in accidentally. It primarily fixes a bug in the
resolver library which cannot cope correctly with multi homed hosts. The
server_hp.h_addr_list[] array on this special SINIX version (ancient
[1992]; all current versions do it right) only contains one pointer (to
the first IP address of the several addresses), but the list itself con-
tains all IP addresses.

Correct Memory Layout:
    ...
   +-----------+     +-----------+     +-------------+
   |h_addr_list| ->  |        [0]| ->  |207.68.156.52|
   +-----------+     +-----------+     +-------------+
    ...              |        [1]| ->  |207.68.137.53|
		     +-----------+     +-------------+
		     |        [2]| ->  |207.68.156.16|
		     +-----------+     +-------------+
		     |        [3]| ->  |207.68.156.73|
		     +-----------+     +-------------+
		     |    NULL   |     |   0.0.0.0   |
		     +-----------+     +-------------+

Bug in ancient SINIX-D:
    ...
   +-----------+     +-----------+     +-------------+
   |h_addr_list| ->  |        [0]| ->  |207.68.156.52|
   +-----------+     +-----------+     +-------------+
    ...              |    NULL   |     |207.68.137.53|
		     +-----------+     +-------------+
				       |207.68.156.16|
				       +-------------+
				       |207.68.156.73|
				       +-------------+
				       |   0.0.0.0   |
				       +-------------+

I wonder if other (Lachman) TCP implementations have (had) the same
problem. It seldom shows, the server just uses the first address.

    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