summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2010-09-21 05:56:59 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2010-09-21 05:56:59 +0000
commit34e3fa436a4af2aab7f332da41beea120db9da23 (patch)
tree2827b22e492002cee6872194308fe0a27c4d4262
parent8ac6f4a4f3ffc4af51890409e7570a6b6884dbfa (diff)
bump default snaplen so that pfloghdr + ip hdr + prot hdr usually fit
-rw-r--r--sbin/pflogd/pflogd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pflogd/pflogd.h b/sbin/pflogd/pflogd.h
index 596e6969261..c7ef80e67b0 100644
--- a/sbin/pflogd/pflogd.h
+++ b/sbin/pflogd/pflogd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pflogd.h,v 1.3 2006/01/15 16:38:04 canacar Exp $ */
+/* $OpenBSD: pflogd.h,v 1.4 2010/09/21 05:56:58 henning Exp $ */
/*
* Copyright (c) 2003 Can Erkin Acar
@@ -19,7 +19,7 @@
#include <sys/limits.h>
#include <pcap.h>
-#define DEF_SNAPLEN 116 /* default plus allow for larger header of pflog */
+#define DEF_SNAPLEN 160 /* pfloghdr + ip hdr + proto hdr fit usually */
#define PCAP_TO_MS 500 /* pcap read timeout (ms) */
#define PCAP_NUM_PKTS 1000 /* max number of packets to process at each loop */
#define PCAP_OPT_FIL 1 /* filter optimization */