mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
777c1c0e4c
This port has been deleted on 2019-10-16 as un-fetchable, but there is a repository on GitHub that provides a slightly later version than that of the deleted port. Approved by: antoine (mentor)
18 lines
843 B
C
18 lines
843 B
C
--- tcpdump.c.orig 2013-07-01 18:43:14 UTC
|
|
+++ tcpdump.c
|
|
@@ -114,10 +114,13 @@ static int callback(
|
|
/* for some reason, the windows version of tcpdump is using */
|
|
/* this. It looks just like ethernet to me */
|
|
case PCAP_DLT_EN10MB:
|
|
- offset = find_ip_eth(buf); /* Here we check if we are dealing with Straight Ethernet encapsulation or PPPoE */
|
|
+ offset = find_ip_eth(buf); /* Here we check if we are dealing with Straight Ethernet encapsulation, PPPoE or .1q VLAN encapsulation */
|
|
memcpy(ð_header, buf, EH_SIZE); /* save ether header */
|
|
switch (offset)
|
|
{
|
|
+ case EH_SIZE + ETHER_VLAN_ENCAP_LEN:
|
|
+ memcpy(ð_header.ether_type, buf+EH_SIZE+2, 2);
|
|
+ /* FALLTHROUGH */
|
|
case EH_SIZE: /* straight Ethernet encapsulation */
|
|
memcpy((char *)ip_buf,buf+offset,iplen-offset);
|
|
callback_plast = ip_buf+iplen-offset-1;
|