• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Getting list of interfaces and IP addresses for each
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Getting list of interfaces and IP addresses for each (From: "matt jaffa" <email@hidden>)

  • Prev by Date: Getting list of interfaces and IP addresses for each
  • Next by Date: Re: Getting list of interfaces and IP addresses for each
  • Previous by thread: Getting list of interfaces and IP addresses for each
  • Next by thread: Re: Getting list of interfaces and IP addresses for each
  • Index(es):
    • Date
    • Thread