GNOME Bugzilla – Bug 785778
pcapparse: support vlan 802.1q
Last modified: 2017-08-09 06:57:13 UTC
https://en.wikipedia.org/wiki/IEEE_802.1Q
Created attachment 356865 [details] [review] pcapparse: support vlan 802.1q
Review of attachment 356865 [details] [review]: ::: gst/pcapparse/gstpcapparse.c @@ +377,3 @@ + if (eth_type == 0x8100) { + eth_type = + GUINT16_FROM_BE (*((guint16 *) (buf + ETH_MAC_ADDRESSES_LEN + 4))); You should probably check if you actually have enough data for this
Test file: http://s3.amazonaws.com/fox_misc/aperi_tr01_1s_pkts-C.cap.gz renamed to "test.cap" Test pipeline: gst-launch-1.0 -v filesrc location=~/test.cap ! pcapparse ! fakesink silent=false
Created attachment 356937 [details] [review] pcapparse: support vlan 802.1q Added check that there is enough data for the extra 4 byte vlan header
Created attachment 356945 [details] [review] pcapparse: support vlan 802.1q small improvement (can't wait to switch to GitLab :) )
Attachment 356945 [details] pushed as 27c04cf - pcapparse: support vlan 802.1q