login
Header Space

 
 

Questions regarding local address assignment

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <netdev@...>
Date: Monday, April 14, 2008 - 11:19 am

Suppose a program creates a socket and doesn't bind it to a local 
address.  When the program wants to connect the socket to a remote 
address (for TCP) or send a datagram to a remote address (for UDP or 
raw IP), the kernel automatically assigns a local address to it.

Questions:

	1. What algorithm does the kernel use to select the local 
	   address?

	2. Where is the source code for the selection?

	3. Is this information documented anywhere?

Thank you,

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Questions regarding local address assignment, Alan Stern, (Mon Apr 14, 11:19 am)
speck-geostationary