• 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: Question about VLANs in Mac OS X
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Question about VLANs in Mac OS X
      • From: Allan Nathanson <email@hidden>
References: 
 >Question about VLANs in Mac OS X (From: Terry Simons <email@hidden>)
 >Re: Question about VLANs in Mac OS X (From: Allan Nathanson <email@hidden>)

  • Prev by Date: how to write a virtual network device driver based on USBCDCECM (Or Quacomm MSM interface)
  • Next by Date: Re: Question about VLANs in Mac OS X
  • Previous by thread: Re: Question about VLANs in Mac OS X
  • Next by thread: Re: Question about VLANs in Mac OS X
  • Index(es):
    • Date
    • Thread