CVS commit: src/dist/pf/sbin/pflogd

2023-08-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug 19 14:56:23 UTC 2023

Modified Files:
src/dist/pf/sbin/pflogd: pflogd.c

Log Message:
Don't write random data to the header.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/dist/pf/sbin/pflogd/pflogd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/dist/pf/sbin/pflogd

2023-08-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sat Aug 19 14:56:23 UTC 2023

Modified Files:
src/dist/pf/sbin/pflogd: pflogd.c

Log Message:
Don't write random data to the header.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/dist/pf/sbin/pflogd/pflogd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/dist/pf/sbin/pflogd/pflogd.c
diff -u src/dist/pf/sbin/pflogd/pflogd.c:1.11 src/dist/pf/sbin/pflogd/pflogd.c:1.12
--- src/dist/pf/sbin/pflogd/pflogd.c:1.11	Sat Aug 19 01:57:34 2023
+++ src/dist/pf/sbin/pflogd/pflogd.c	Sat Aug 19 10:56:22 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: pflogd.c,v 1.11 2023/08/19 05:57:34 rjs Exp $	*/
+/*	$NetBSD: pflogd.c,v 1.12 2023/08/19 14:56:22 christos Exp $	*/
 /*	$OpenBSD: pflogd.c,v 1.45 2007/06/06 14:11:26 henning Exp $	*/
 
 /*
@@ -349,8 +349,9 @@ try_reset_dump(int nomove)
 		hdr.magic = TCPDUMP_MAGIC;
 		hdr.version_major = PCAP_VERSION_MAJOR;
 		hdr.version_minor = PCAP_VERSION_MINOR;
-		hdr.snaplen = hpcap->snapshot;
+		hdr.thiszone = 0;
 		hdr.sigfigs = 0;
+		hdr.snaplen = hpcap->snapshot;
 		hdr.linktype = hpcap->linktype;
 
 		if (fwrite((char *), sizeof(hdr), 1, fp) != 1) {



CVS commit: src/dist/pf/sbin/pflogd

2023-08-18 Thread Robert Swindells
Module Name:src
Committed By:   rjs
Date:   Sat Aug 19 05:57:34 UTC 2023

Modified Files:
src/dist/pf/sbin/pflogd: pflogd.c

Log Message:
pflogd: adapt to new libpcap API.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/dist/pf/sbin/pflogd/pflogd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/dist/pf/sbin/pflogd/pflogd.c
diff -u src/dist/pf/sbin/pflogd/pflogd.c:1.10 src/dist/pf/sbin/pflogd/pflogd.c:1.11
--- src/dist/pf/sbin/pflogd/pflogd.c:1.10	Fri Aug 28 12:17:41 2015
+++ src/dist/pf/sbin/pflogd/pflogd.c	Sat Aug 19 05:57:34 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: pflogd.c,v 1.10 2015/08/28 12:17:41 joerg Exp $	*/
+/*	$NetBSD: pflogd.c,v 1.11 2023/08/19 05:57:34 rjs Exp $	*/
 /*	$OpenBSD: pflogd.c,v 1.45 2007/06/06 14:11:26 henning Exp $	*/
 
 /*
@@ -349,7 +349,6 @@ try_reset_dump(int nomove)
 		hdr.magic = TCPDUMP_MAGIC;
 		hdr.version_major = PCAP_VERSION_MAJOR;
 		hdr.version_minor = PCAP_VERSION_MINOR;
-		hdr.thiszone = hpcap->tzoff;
 		hdr.snaplen = hpcap->snapshot;
 		hdr.sigfigs = 0;
 		hdr.linktype = hpcap->linktype;



CVS commit: src/dist/pf/sbin/pflogd

2023-08-18 Thread Robert Swindells
Module Name:src
Committed By:   rjs
Date:   Sat Aug 19 05:57:34 UTC 2023

Modified Files:
src/dist/pf/sbin/pflogd: pflogd.c

Log Message:
pflogd: adapt to new libpcap API.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/dist/pf/sbin/pflogd/pflogd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.