Gateway generates wrong IP returns address (4.2, Vax)

jerry at wg3b20.UUCP jerry at wg3b20.UUCP
Thu May 22 09:04:45 AEST 1986


> 
> We have a VAX 750 running 4.2 gatewaying between two ethernets.  For some
> reason, connections running over the second ethernet have the return
> (source) IP address of the first ethernet.  This causes minor problems like
> machines on the second net generating arp requests that are not responded
> to.  Also the address of the first ethernet happens to end in .255 (class C
> host number is all 1's) which some systems don't like (we're planning to
> change this).

To: pesnta!hplabs!sdcrdcf!usc-oberon!bacall!uscvax!pv
Subject: Re: Gateway generates wrong IP returns address (4.2, Vax)
In-reply-to: your article <29 at uscvax.UUCP>

This is a bug in the 4.2 code for TCP sockets.  If you look at
in_pcb.c in routine in_pcbconnect you will see where the source IP
address is chosen for the IP header.  Instead of choosing the
source address based on the interface the packet will be sent to,
it chooses the address of the FIRST interface in the ifnet list
that has an address family of AF_INET.  Of course this is the first
DEUNA and thus the IP source address is that of this first DEUNA.

There has been a fix for this problem (when I saw it it was combined
with a TCP maxsegsize change down by Mike Muus) and I will post it
to the net or to your mailbox directly.

Regards,
Jerry Scott



More information about the Comp.unix.wizards mailing list