Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Oct 2000 11:48:40 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Mike Nowlin <mike@argos.org>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   src IP addr w/multiple ifaces
Message-ID:  <200010241548.LAA62447@khavrinen.lcs.mit.edu>
In-Reply-To: <Pine.LNX.4.21.0010240230560.9980-100000@jason.argos.org>
References:  <Pine.LNX.4.21.0010240230560.9980-100000@jason.argos.org>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Tue, 24 Oct 2000 02:39:54 -0400 (EDT), Mike Nowlin <mike@argos.org> said:

> How is this source IP chosen in the kernel

If the source address is ``bound'' (either by the socket or by the
protocol if there is no socket), then that source address will always
be used.

Otherwise, the source address is chosen to be the interface address
associated with the route to the destination, or the interface address
of the interface the destination is attached to if routing is
disabled.

This algorithm was chosen so that the Right Thing happens on
multi-homed hosts where not all communication partners have routes to
all addresses.

-GAWollman



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010241548.LAA62447>