[<prev] [next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.44L0.0804141115300.2528-100000@iolanthe.rowland.org>
Date: Mon, 14 Apr 2008 11:19:56 -0400 (EDT)
From: Alan Stern <stern@...land.harvard.edu>
To: netdev@...r.kernel.org
Subject: Questions regarding local address assignment
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists