Files
pkgsrc-ng/net/tcptrace/patches/patch-tcpdump.c
2016-01-21 23:40:00 +01:00

21 lines
437 B
C

$NetBSD: patch-tcpdump.c,v 1.1 2015/01/20 00:04:58 enami Exp $
--- tcpdump.c.orig 2004-10-07 20:07:30.000000000 +0000
+++ tcpdump.c
@@ -420,7 +420,14 @@ PcapSavePacket(
void *plast)
{
static MFILE *f_savefile = NULL;
- struct pcap_pkthdr phdr;
+ struct {
+ struct {
+ tt_int32 tv_sec;
+ tt_int32 tv_usec;
+ } ts;
+ tt_uint32 caplen;
+ tt_uint32 len;
+ } phdr;
int wlen;
if (f_savefile == NULL) {