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?

Cheers

Tony

Coordinator
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.

 

Thanks,

 

Boaz.

Jul 19, 2011 at 4:49 PM

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

Coordinator
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.