On Tue, 8 Mar 2005 [EMAIL PROTECTED] wrote:

Yes indeed, that is the whole point. It IS circular that is why I don't get
it. It's like chikcen-or-egg.

On unbound sockets the source IP of 0.0.0.0 is used in route rule matching while looking up the actual source IP to use. This is a special routing lookup only occuring when sending packets from unbound sockets, and occurs very early in the processing chain while the packet is assembled. In addition id binds the socket in case of stream sockets (TCP), ensuring that any further packets from this socket uses the exact same source IP and port.


On packets where the source IP is known the source IP is included in the route rule lookup. This normal route lookup occurs much later in the stack, much closer to where the packet is finally sent to the destination device. Here no attention is given to the source attribute of the found route.

Regards
Henrik
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to