site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Jun 28, 2005, at 18:00 , Chase wrote: On Jun 28, 2005, at 7:13 PM, Justin C. Walker wrote: Can you describe your goals? the goal is simply to get a router address for a given interface. Don't know if this helps, or just confuses the issue. Regards, Justin -- Justin C. Walker, Curmudgeon-At-Large Institute for General Semantics -------- If you're not confused, You're not paying attention -------- _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... i have a list of interfaces. some have ip addresses. some don't. for those that do, i need the gateway address that they are connected to. Ah. That may not be a solvable problem in any portable way. As you have observed, not all routers behave in a predictable way, and there is a great difference across platforms regarding how this information is obtained. I'm not familiar enough with recent BSD's, Linux's, or Windozen, to know whether there is something analogous to Mac OS X's solution on these platforms. Also, note that the routers you collect (on Mac OS X) from the SystemConfiguration framework are not necessarily in active use by the workstation. These router addresses are intended to be used as the default router address if the interface in question becomes the 'primary' One reason not to collect this information from the attached network (dynamically, as you were trying to) is that you don't know that a given router, found on a subnet/cable, is going to be useful for that workstation. This email sent to site_archiver@lists.apple.com