> > I'd say for connected and bound sockets, getsockname() would return the
> > correct topological source address.
> 
> But that'd break the getsockname() function, which should return the local
> binding of the socket. If the socket is bound to a home address, that
> address
> should be returned by the function, even though it might be also
> (Mobile IP-)bound to a care-of address.

In order to bind() to a address it generally requires that the address
is locally configured. I assumed that the suggestion was that the MN would
always have a home-address configured as a logical interface or some pseudo
interface. It seems a bit odd for a socket API to return a fake address 
while it's bound to a different address.  

That's why it's clean to direct the kernel to swtich the source address
selection mechanism  from the default to the desired. 


-Samita


--------------------------------------------------------------------
IETF IPng Working Group Mailing List
IPng Home Page:                      http://playground.sun.com/ipng
FTP archive:                      ftp://playground.sun.com/pub/ipng
Direct all administrative requests to [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to