Re: Getting list of interfaces and IP addresses for each
Re: Getting list of interfaces and IP addresses for each
- Subject: Re: Getting list of interfaces and IP addresses for each
- From: Allan Nathanson <email@hidden>
- Date: Tue, 30 May 2006 21:27:37 -0400
On May 30, 2006, at 6:54 PM, matt jaffa wrote:
Hi,
I was wondering if there is a simple way programmatically to get a
list of interfaces and their MAC addresses, subnet addresses, ip
addresses, (gateway / router ip)? I have tried MoreSCF example code
and on 10.2, and 10.4 it is not returning this information at all. All
it is returning is what config mode the interface is on (DHCP / Manual
/ None / etc.).
This must work back to 10.2 so some of the new API stuff is not
reasonable.
Anyone know how I should approach this?
Have you looked at getifaddrs(3) ?
- Allan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden