Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Can't get all BSD network names from SC Framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't get all BSD network names from SC Framework



Hi-

I can't seem to get the BSD names of all the network interfaces as configured in System Preferences.

If I use SCNetworkInterfaceCopyAll(), I can only get the physical devices. This is a problem if the user has two configurations for the same device. Also, it only returns "modem" rather than "ppp0", "ppp1",...

I have tried SCNetworkSetCopyCurrent() and get a list of services for which I can get human-readable names. If I try to extract the interfaces with SCNetworkServiceGetInterface(), many services return NULL and I still don't get ppp0 and so on.

In the end, I need a list of BSD names for all "virtual" devices.

Thanks,
Jamie Griffin
<email@hidden>


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.