Skip to content

Commit

Permalink
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=951491
Browse files Browse the repository at this point in the history
  • Loading branch information
simsong committed Feb 21, 2020
1 parent c2f8f10 commit 4d53797
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/datalink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ void dl_ethernet(u_char *user, const struct pcap_pkthdr *h, const u_char *p)
}

/* Handle basic VLAN packets */
while (ntohs(*ether_type) == ETHERTYPE_VLAN) {
while (ntohs(*ether_type) == ETHERTYPE_VLAN ||
ntohs(*ether_type) == ETH_P_QINQ1 ||
ntohs(*ether_type) == ETH_P_8021AD) {
//vlan = ntohs(*(u_short *)(p+sizeof(struct ether_header)));
ether_type += 2; /* skip past VLAN header (note it skips by 2s) */
ether_data += 4; /* skip past VLAN header */
Expand Down

0 comments on commit 4d53797

Please sign in to comment.