Skip to contentSkip to conversation

Hi,

DISCUSSION John Reynolds 2 participants 2 messages Oct 26, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi,
Is there a userspace API that can be used to determine if a network interface is a 802.1Q interface, and what its vlan id and parent interface is. it appears that SOICGIFPFLAGS is not supported and netdev_priv() is only available to drivers, or do I have to resort to parsing the /proc/net/* files ?

regards

#1 lore raw
Quoted 4 lines · John Reynolds

Hi,
Is there a userspace API that can be used to determine if a network interface is a 802.1Q interface, and what its vlan id and parent interface is. it appears that SOICGIFPFLAGS is not supported and netdev_priv() is only available to drivers, or do I have to resort to parsing the /proc/net/* files ?

regards

The netlink API has it. You can use the 'ip' tool and parse it's text output, though of course that is not an overly stable API.

I think the old VLAN ioctls are still in the kernel as well, so you can use those like the 'vconfig' tool does.

http://www.candelatech.com/~greear/vlan.html

Please note that 'ip' is the way of the future and I have little interest in actually supporting vconfig.

Thanks,
Ben

Quoted 6 lines

--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
Ben Greear <[email protected]>
Candela Technologies Inc  http://www.candelatech.com