• 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 17:43:09 -0700


On Jun 28, 2005, at 17:10 , Chase wrote:

the bottom line is that i need **all routers** and everything that interacts with the routing table that i've seen so far only acknowledges the **default** router.

Then the bottom line for you is that you may not get to your goal (what ever that is).


and netstat does not display all the router addresses on the network. it only displays the address of the default router.

'netstat' only tells you what your local routing database tells you. Your local routing database gets input from a number of sources, but for your typical workstation, this information comes either from local manual configuration, or from DHCP/BootP. There's nothing dynamic about it.


someone else chimed in earlier saying the same thing, but it simply doesn't do it, at least not with the arguments he had suggested and not with any of the arguments that i've tried previously or since.

We're all just shooting in the dark, since you haven't told us what your goal is.


note: on another list, someone pointed out that this info can be obtained using the SystemConfiguration apis. i've figured out how to get it that way and it works fine, but it isn't portable to other operating systems, obviously. since the first release of this app is for mac os only, for the time being, i'll be using that technique, but i still want to find out **some** way of doing this in a platform-agnostic way for possible future ports.

Each platform has a way to store this information and retrieve it during startup (e.g., /etc/iftab). But again, it's generally static information that has been hand-configured (e.g., set up on the DHCP server, and forgotten), and there is no dynamic way for a workstation to discover all the routers in the neighborhood.


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: Peter Bierman <email@hidden>)
 >Re: ICMP Router Discovery (From: Chase <email@hidden>)

  • Prev by Date: Re: pthread_cond_timedwait() bug in Tiger?
  • Next by Date: Re: ICMP Router Discovery
  • Previous by thread: Re: ICMP Router Discovery
  • Next by thread: Re: ICMP Router Discovery
  • Index(es):
    • Date
    • Thread