diff options
author | Stefan Eßer <se@FreeBSD.org> | 2020-01-21 20:42:17 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 2020-01-21 20:42:17 +0000 |
commit | 777c1c0e4c187de4969a8275214f6cfb11c0234d (patch) | |
tree | 4cb649390660f5a4f5f107dd9c35617ae23476b1 /net/tcptrace/files/patch-tcpdump.c | |
parent | find(1) doesn't need a glob to search for patches. (diff) |
Resurrect tcptrace
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)
Notes
Notes:
svn path=/head/; revision=523739
Diffstat (limited to 'net/tcptrace/files/patch-tcpdump.c')
-rw-r--r-- | net/tcptrace/files/patch-tcpdump.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net/tcptrace/files/patch-tcpdump.c b/net/tcptrace/files/patch-tcpdump.c new file mode 100644 index 000000000000..f82fb83b2b38 --- /dev/null +++ b/net/tcptrace/files/patch-tcpdump.c @@ -0,0 +1,17 @@ +--- 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; |