Re: ICMP Router Discovery
Re: ICMP Router Discovery
- Subject: Re: ICMP Router Discovery
- From: Andrew Gallatin <email@hidden>
- Date: Tue, 28 Jun 2005 13:04:11 -0400 (EDT)
Chase writes:
>
> When I look at the TCP/IP section for Built-in Ethernet, I see
> "Router: 192.168.1.250".
>
>
> What is the simplest way to get that exact same information?
>
netstat -rn | grep G
Eg, look at the routing table for entries with RTF_GATEWAY set.
If you need to do this in C, take a look at the netstat program in the
darwin sources.
Drew
_______________________________________________
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