[openib-general] [PATCH] ib_addr: local/loopback address handling

Sean Hefty mshefty at ichips.intel.com
Mon Mar 27 10:27:14 PST 2006


Michael S. Tsirkin wrote:
>>I'm not as sure about this change; specifically the use of LOOPBACK().  If 
>>the user specifies 127.0.0.1 for their source address, this will end up 
>>changing that address to whatever the destination address is.  Is this 
>>really what we want?
> 
> My testing shows that in sockets 127.0.0.1 is same as 0.

Maybe I wasn't being clear.  If the user tries to connect from 127.0.0.1 to 
192.168.0.101, this patch will change their source address from 127.0.0.1 to be 
192.168.0.101.  The current code leaves the source address as 127.0.0.1.

What ib_addr is trying to allow is connecting to a remote IP address.  If a 
source address is not specified, then one is assigned.

- Sean



More information about the general mailing list