Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -518,10 +518,12 @@ capture_packet_reasm_ip(capture_info_t *capinfo, const struct pcap_pkthdr *heade

// Skip VLAN header if present
if (capinfo->link == DLT_EN10MB) {
#ifndef __CYGWIN__
struct ether_header *eth = (struct ether_header *) packet;
if (ntohs(eth->ether_type) == ETHERTYPE_8021Q) {
link_hl += 4;
}
#endif
}

#ifdef SLL_HDR_LEN
Expand Down
2 changes: 2 additions & 0 deletions src/capture.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@
#endif

#include <arpa/inet.h>
#ifndef __CYGWIN__
#include <netinet/if_ether.h>
#endif
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
Expand Down