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: Terry Simons <email@hidden>
- Date: Mon, 17 Mar 2008 21:12:03 -0600
Hi Allan,
It looks like all of the options in <SystemConfiguration/
SCNetworkConfiguration.h> are 10.5 and later?
Were VLANs available in earlier verisons of Mac OS X? Are there more
primitive interfaces that would work with older versions of Mac OS X?
It looks like the following IOCTL might work with lower level BSD
interfaces:
sys/sockio.h:#define SIOCGETVLAN SIOCGIFVLAN
Is that true? Was this call available on earlier versions of Mac OS X?
- Terry
On Mar 17, 2008, at 6:43 PM, Allan Nathanson wrote:
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
_______________________________________________
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