In your previous mail you wrote: > > Or, don't change the getsockname(), but instead call > > mip_get_one_mobile_node() afterwards to identify if the address is bound > > to a care-of address. Note that this binding can dynamically any time, > > and subsequent mip_get_one_mobile_node() calls are sufficient to capture > > the changes. > > 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. => there are two things: the address the socket is bound to (should be the home address in common cases) and the address which will be in the source field on the wire (should be the care-of address). getsockname() must return the first one but the mobile IP API should give a way to retrieve the second.
Regards [EMAIL PROTECTED] -------------------------------------------------------------------- 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] --------------------------------------------------------------------
