diff options
author | 2010-09-21 04:08:12 +0000 | |
---|---|---|
committer | 2010-09-21 04:08:12 +0000 | |
commit | eb079f866328acad019234427622a0b695bb117f (patch) | |
tree | 29b59814bf66f6f65fe445ff99943d8f9482d2e3 | |
parent | pflog overhaul (diff) | |
download | wireguard-openbsd-eb079f866328acad019234427622a0b695bb117f.tar.xz wireguard-openbsd-eb079f866328acad019234427622a0b695bb117f.zip |
temporary hack to raise snaplen for pflog so that pflog header, ip header
and protocol header actually fit in the common cases.
stays until canacar tells us how to do it right ;)
ok dlg ryan
-rw-r--r-- | usr.sbin/tcpdump/privsep_pcap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/tcpdump/privsep_pcap.c b/usr.sbin/tcpdump/privsep_pcap.c index e79321bbcab..0025fbc1903 100644 --- a/usr.sbin/tcpdump/privsep_pcap.c +++ b/usr.sbin/tcpdump/privsep_pcap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: privsep_pcap.c,v 1.15 2008/04/18 21:35:11 djm Exp $ */ +/* $OpenBSD: privsep_pcap.c,v 1.16 2010/09/21 04:08:12 henning Exp $ */ /* * Copyright (c) 2004 Can Erkin Acar @@ -300,6 +300,10 @@ priv_pcap_live(const char *dev, int slen, int prom, int to_ms, #endif p->linktype = v; + /* XXX hack */ + if (p->linktype == DLT_PFLOG && p->snapshot < 160) + p->snapshot = 160; + /* set timeout */ if (to_ms != 0) { struct timeval to; |