question: source address on interface w/ aliases?

Naveen Kumar g_naveen_k at yahoo.com
Thu Feb 12 11:38:57 PST 2004


--- Brian Reichert <reichert at numachi.com> wrote:
> I've had an expectation violated recently, and
> wanted to research
> whether my expectation was grounded in reality:
> 
>   Given an interface with a primary IP, and one or
> more aliased IP
>   addresses:
> 
>   When a process opens a connection to another host,
> which IP address
>   will be chosen as the source address?
> 
> Steven's just says 'the kernel chooses the IP
> address and port'.

Dont you have to give the local ip address(either
primary or aliases') when you do a bind on the socket
?
If you choose INADDR_ANY I am not sure which ip
address it will pick up. 



> 
> My expectation was that the primary IP address would
> be used.
> 
> Is my expectation valid?  Is there a spec that
> describes this, or
> is it up to an individual OS to do whatever it
> wants?
> 
> (I'm sorry to pester this list, as this question
> isn't actually
> specific to FreeBSD...)
> 
> I'm more than willing to do my own research, but a
> suggestion of
> useful buzzwords would be appreciated as well. :)
> 
> Thanks for your time...
> 
> -- 
> Brian Reichert				<reichert at numachi.com>
> 37 Crystal Ave. #303			Daytime number: (603)
> 434-6842
> Derry NH 03038-1713 USA			BSD admin/developer at
> large	
> _______________________________________________
> freebsd-net at freebsd.org mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to
"freebsd-net-unsubscribe at freebsd.org"


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html


More information about the freebsd-net mailing list