Re: ICMP Router Discovery
Re: ICMP Router Discovery
- Subject: Re: ICMP Router Discovery
- From: "Justin C. Walker" <email@hidden>
- Date: Tue, 28 Jun 2005 10:19:54 -0700
On Jun 28, 2005, at 09:58 , Chase wrote:
On Jun 28, 2005, at 11:24 AM, Ian Stewart wrote:
Not sure why you thought this was required.
If this is RFC 1256, then it is used in an HA
config to find other routers.
Non of my Cisco, or firewalls (PIX and Check point) have this
turned on.
For us we use VIPs and VRRP but do not use ICMP discovery.
Maybe we should look at it.
That's good to know. I was assuming ICMP Router Discovery was the
only way routes are dynamically managed. Thanks.
Your assumption may not be valid...
My application simply needs to know the addresses of **all** of the
routers attached to the computer's various networking interfaces.
You may not be able to achieve this without manual intervention.
Depending on your network, routers may identify one another by some
routing protocol to which you are not privy; or may be manually
configured, and the information passed to individual workstations by
that same manual configuration (the admin tells you; you configure
your workstation with emacs...).
What is the simplest way to get that exact same information?
This information is kept in the "dynamic store" managed by the
SystemConfiguration framework. This information is placed into the
store during startup or update by the framework, either from on-disk
data (manual configuration) or by the system as it syncs up with
(say) DHCP servers that have that data. Note that this doesn't give
you "all the nearby routers", only those routers that have been
identified to you by some sort of admin setup (either directly, or
via something like DHCP).
You can get the same information using the SystemConfiguration
framework and parsing the content. I don't know how much doc is
available for this framework, but, as a start, check Apple's
developer website. You can also look at the source for
'scutil' (darwin source on the developer site), or Jeffrey Frey's
'ncutil':
<http://deaddog.duch.udel.edu/~frey/darwin/ncutil>
In general, the IPv4 router infrastructure is not all that dynamic
(from the workstation's viewpoint). It works better (in theory) with
IPv6.
What are you trying to achieve?
Regards,
Justin
--
Justin C. Walker, Curmudgeon-At-Large
Institute for General Semantics
--------
"Weaseling out of things is what separates us from the animals.
Well, except the weasel."
- Homer J Simpson
--------
_______________________________________________
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