site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Andrew Gallatin