This project is read-only.

How to set vlan ID in ethernet layer

Jul 18, 2011 at 11:48 PM

Heya, How do i set the VLAN ID 802.1q in the packet builder? i only see a way to set the mac addresses and possibly the ethernettype to VlanTaggedFrame, but where do i set the actual vlan ID?



Jul 19, 2011 at 4:28 PM

Hi Tony,


802.1Q isn't supported in Pcap.Net.

Please open an issue for that in the issue tracker and I hope to add that in the next release.

If you can attach some example packets for that, it could help the development.





Jul 19, 2011 at 4:49 PM

ok logged, in the mean time is there a way to do this ethernetlayer raw? manually?

Jul 23, 2011 at 9:14 AM

If you don't want to change the framework at all, you can simply write an array of bytes containing the bytes of the packet and create a packet from that.