Re: [RESOLVED] ICMP Router Discovery
Re: [RESOLVED] ICMP Router Discovery
- Subject: Re: [RESOLVED] ICMP Router Discovery
- From: Andre Smith <email@hidden>
- Date: Wed, 29 Jun 2005 18:56:53 -0400
The routing tables that exist on a workstation or even a server will
usually only contain the route for a default router; this could also
obtained using a DCHP server.
If you want to discover routes advertised by routers, you probably
need to implement BGP, etc. There are numerous routing protocols
described in detail by RFCs, just do a google search, and you should
be well on your way.
Be forewarned, it will take a lot more code than a simple ping to
obtain advertised routes from internet routers. Good Luck.
On Jun 29, 2005, at 11:44 AM, Chase wrote:
On Jun 29, 2005, at 10:19 AM, Allen Smith wrote:
5) send DHCP requests on all ports, see if you get back any router
entries for
that interface.
I was reading about how to do this last night. I think this and
BootP are gonna help me out a lot.
Without further context it's really not possible to come up with a
better
answer, and even with context it might just be a problem without a
complete
solution.
These are all great answers. Everyone has really done a great job
helping me out on this.
I have decided, for the time being, to just get the router
addresses from SystemConfiguration.framework, and it's working
great, but I think everyone here has given me more than enough info
to do this in a more portable way at a later time.
Our first release is for Mac OS X only, so this dependency is
fine. The remaining 99% of our networking codebase is POSIX-
friendly, so at least this will be the only piece of code we'll
have to worry about when and if we ever port to another platform.
Thanks, seriously, to everyone who helped out on this.
Cheers.
- Chase
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40speakeasy.net
This email sent to email@hidden
_______________________________________________
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