packetcap / go-pcap

Packet capture library and tools in native go
Apache License 2.0
23 stars 5 forks source link

Add VLAN tags when available #40

Open cpg1111 opened 1 year ago

cpg1111 commented 1 year ago

Hi there, currently, this module will not include VLAN tags as it is missing PACKET_AUXDATA as a socket option and subsequently reading socket control messages for said data. I've created this PR which adds this for syscall reading on Linux https://github.com/packetcap/go-pcap/pull/39