Re: Question about VLANs in Mac OS X
Re: Question about VLANs in Mac OS X
- Subject: Re: Question about VLANs in Mac OS X
- From: Allan Nathanson <email@hidden>
- Date: Mon, 17 Mar 2008 20:43:36 -0400
On Mar 17, 2008, at 8:28 PM, Terry Simons wrote:
I'm trying to learn about how Mac OS X handles VLANs. It looks like
there are some vlan configuration options for ifconfig (according to
the man page).
Are there public APIs for mapping the VLAN enumerations to a BSD
interface name (I'm assuming whatever mechanism ifconfig uses is
public? IOCTLs in the kernel?)?
Basically what I want to be able to do is figure out which VLANs are
configured/enabled/disabled for "enX" or whatever.
I searched the archives but didn't find anything that looked relevant.
Is there any sort of documentation other than the ifconfig sources,
or do I have to roll up my sleeves? ;)
Also, are there any calls that will let me determine if a given
interface supports VLAN tagging without actually attempting to do a
set on the interface?
You'll find a set of APIs in <SystemConfiguration/
SCNetworkConfiguration.h> that allow you to configure a VLAN interfaces.
- 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