Programmatically Configuring a Network Interface
Programmatically Configuring a Network Interface
- Subject: Programmatically Configuring a Network Interface
- From: "Steve Austin" <email@hidden>
- Date: Wed, 29 Jul 2009 18:03:43 -0700
- Importance: normal
- Priority: normal
- Thread-topic: Programmatically Configuring a Network Interface
Title: Programmatically Configuring a Network Interface
I’m supporting a piece of hardware that appears as a USB Ethernet interface on Tiger, Leopard and Snow Leopard. I need to configure this to have an explicitly assigned link local address (169.254.X.Y). I am trying to use the SystemConfiguration framework to do this and while I can list the interfaces with SCNetworkInterfaceCopyAll(), when I call SCNetworkInterfaceGetConfiguration on an individual SCNetworkInterfaceRef, I always get NULL (even for interfaces that are connected and configured).
What should I be calling to configure the network correctly? I can see the device in /Library/Preferences/SystemConfiguration/preferences.plist and would be tempted to alter this directly if the documentation did not explicitly tell me not to do this.
Steve
Shoot Anything, Share Everything with Flip Video.
This message (and any attachments) may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this message in error, please destroy the message or delete it from your system immediately and notify the sender.
_______________________________________________
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