Path: utzoo!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!pasteur!ucbvax!TRANTOR.UMD.EDU!louie From: louie@TRANTOR.UMD.EDU ("Louis A. Mamakos") Newsgroups: comp.protocols.tcp-ip Subject: Re: Questions about 4.3BSD bind() on a multiple ethernet system. Message-ID: <8901122123.AA29435@trantor.umd.edu> Date: 12 Jan 89 21:23:01 GMT References: <8901122109.AA29385@trantor.umd.edu> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 13 >If I bind a socket with the internet address of INADDR_ANY, which >internet address is returned? Which internet address is placed in the >source address part of the IP header/trailer sent on that socket? >kernel determine which one I get? The internet address, unless specifically bound, is assigned based on the address of the interface that the packets will be sent through. The interface is selected based on the routing table. Louis A. Mamakos WA3YMH Internet: louie@TRANTOR.UMD.EDU University of Maryland, Computer Science Center - Systems Programming