From owner-freebsd-pf@FreeBSD.ORG Tue Aug 28 00:23:31 2007 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 91FA316A417 for ; Tue, 28 Aug 2007 00:23:31 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by mx1.freebsd.org (Postfix) with ESMTP id 21C3913C469 for ; Tue, 28 Aug 2007 00:23:31 +0000 (UTC) (envelope-from max@love2party.net) Received: from dslb-088-066-001-035.pools.arcor-ip.net [88.66.1.35] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis), id 0ML31I-1IPorh29Hg-0001Oj; Tue, 28 Aug 2007 02:23:29 +0200 From: Max Laier Organization: FreeBSD To: "Bill Marquette" Date: Tue, 28 Aug 2007 02:23:07 +0200 User-Agent: KMail/1.9.7 References: <55e8a96c0708221242h2d5e7d15q847e6fac7cf60554@mail.gmail.com> <200708230006.32294.max@love2party.net> <55e8a96c0708271710n82428eet8c714b9e8d30a3aa@mail.gmail.com> In-Reply-To: <55e8a96c0708271710n82428eet8c714b9e8d30a3aa@mail.gmail.com> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1364010.fhYbcre3fJ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200708280223.27279.max@love2party.net> X-Provags-ID: V01U2FsdGVkX19800FGF8BZ8RvV2ESrTesgoTnC73N5BVhi9/8 K6bBkFZZM0Gxk+WPi5accI0ddXlhofdiJlvWCu1cbo5UNnx85k QIOoCYWS1RDj6Rp8JeDzWJBDIZtVJgB3sRObGELLfo= Cc: freebsd-pf@freebsd.org Subject: Re: pfsync errors X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Aug 2007 00:23:31 -0000 --nextPart1364010.fhYbcre3fJ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 28 August 2007, Bill Marquette wrote: > On 8/22/07, Max Laier wrote: > > There are two reasons why we increase the send error counter. Either > > the internal deferred work queue is full or ip_output fails. Could > > you locate "pfsyncstats.pfsyncs_oerrors++" in your source code and > > replace either occurrence with a printf(). Maybe use the attached.=20 > > This way we will know what exactly fails and if it is ip_output, why. > > Here's what we get with the patch: > pfsync_senddef: ip_output 64 that's EHOSTDOWN ... that's strange. Are you using syncpeer? > # netstat -s -p pfsync > pfsync: > 1264507 packets received (IPv4) > 0 packets received (IPv6) > 0 packets discarded for bad interface > 0 packets discarded for bad ttl > 0 packets shorter than header > 0 packets discarded for bad version > 0 packets discarded for bad HMAC > 0 packets discarded for bad action > 0 packets discarded for short packet > 0 states discarded for bad values > 0 stale states > 115608 failed state lookup/inserts > 86591 packets sent (IPv4) > 0 packets sent (IPv6) > 0 send failed due to mbuf memory error > 37231 send error > But since the send error still increases it seems as if the internal queue= =20 is overflowing, too. This is something that must be fixed as well, but I=20 think the EHOSTDOWN from ip_output is more serious. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart1364010.fhYbcre3fJ Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBG02r/XyyEoT62BG0RAvozAJ40NwaTSxyyAOu/yWvh7b5G5I+JlgCeOoC2 SRWdk1Wqi50COvOxZU8QmSI= =4tJx -----END PGP SIGNATURE----- --nextPart1364010.fhYbcre3fJ--