• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ICMP Router Discovery
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ICMP Router Discovery


  • Subject: Re: ICMP Router Discovery
  • From: "Justin C. Walker" <email@hidden>
  • Date: Tue, 28 Jun 2005 18:20:26 -0700


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.

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.

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 (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >ICMP Router Discovery (From: Chase <email@hidden>)
 >Re: ICMP Router Discovery (From: "Justin C. Walker" <email@hidden>)
 >Re: ICMP Router Discovery (From: Chase <email@hidden>)
 >Re: ICMP Router Discovery (From: Ian Stewart <email@hidden>)
 >Re: ICMP Router Discovery (From: Chase <email@hidden>)
 >Re: ICMP Router Discovery (From: Andrew Gallatin <email@hidden>)
 >Re: ICMP Router Discovery (From: Chase <email@hidden>)
 >Re: ICMP Router Discovery (From: Pelle Johansson <email@hidden>)
 >Re: ICMP Router Discovery (From: Chase <email@hidden>)
 >Re: ICMP Router Discovery (From: Chase <email@hidden>)
 >Re: ICMP Router Discovery (From: "Justin C. Walker" <email@hidden>)
 >Re: ICMP Router Discovery (From: Chase <email@hidden>)

  • Prev by Date: Building shared libraries
  • Next by Date: Re: Building shared libraries
  • Previous by thread: Re: ICMP Router Discovery
  • Next by thread: Re: ICMP Router Discovery
  • Index(es):
    • Date
    • Thread