Re: IP of a connected Mac
Re: IP of a connected Mac
- Subject: Re: IP of a connected Mac
- From: Justin Walker <email@hidden>
- Date: Mon, 6 Jan 2003 11:37:25 -0800
On Monday, Jan 6, 2003, at 11:23 US/Pacific, Smith Kennedy wrote:
That's true, and it is unfortunate that the code snippet I threw out
there won't return the "default" interface. Seems like a logical
thing for that method to return, but the documentation says it will be
"an arbitrary Internet address of the receiver".
It's hard to define the default interface. There really is no such
thing. The best that can be done (I think) is to select the interface
pointed to by the default route. That may not be the one desired, of
course, wherein lies the rub.
There really needs to be a library layer that translates "the pile of
interfaces and assigned network addresses" to a list ordered by some
set of criteria. Determining that criteria will take some time and
thought. The world of multihoming is a fairly new one for most users,
and for most developers.
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large *
Institute for the Absorption of | Some people have got a
Federal Funds | mental horizon of radius zero
| and call it their point of view
| - David Hilbert
*--------------------------------------*-------------------------------*
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.