From owner-freebsd-current@FreeBSD.ORG Fri Dec 12 14:28:51 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB78A16A4CE for ; Fri, 12 Dec 2003 14:28:51 -0800 (PST) Received: from storming.org (MG035035.user.veloxzone.com.br [200.165.35.35]) by mx1.FreeBSD.org (Postfix) with SMTP id 9091743D2D for ; Fri, 12 Dec 2003 14:28:49 -0800 (PST) (envelope-from fred@storming.org) Received: (qmail 24587 invoked by uid 1000); 12 Dec 2003 20:28:48 -0200 Date: Fri, 12 Dec 2003 20:28:47 -0200 From: Fred Souza To: current@freebsd.org Message-ID: <20031212222847.GA24504@torment.storming.org> References: <20031212185410.GB22739@torment.storming.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E39vaYmALEf/7YXx" Content-Disposition: inline In-Reply-To: <20031212185410.GB22739@torment.storming.org> X-Sender: fred@storming.org Subject: Re: Bug in recent kernel's ipmon? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: fred@storming.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2003 22:28:52 -0000 --E39vaYmALEf/7YXx Content-Type: multipart/mixed; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello again, I've found the error. There's a variable, fl_unit, in the struct ipflog, that's appended to fl_ifname when printing the log line. The problem is, fl_ifname already has the data fl_unit was supposed to carry (and apparently it's not doing that, either). I'm not positive if my patch to it is the best one to follow, but it works for me. I've attached it, in case someone else is getting the same kind of error. Fred --=20 "I don't know who my grandfather was; I am much more concerned to know what his grandson will be." -- Abraham Lincoln --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="ipmon.c.diff" --- ipmon.c.orig Fri Dec 12 20:18:24 2003 +++ ipmon.c Fri Dec 12 20:17:42 2003 @@ -943,7 +943,7 @@ break; if (ipf->fl_ifname[len]) len++; - (void) sprintf(t, "%*.*s%u", len, len, ipf->fl_ifname, ipf->fl_unit); + (void) sprintf(t, "%*.*s", len, len, ipf->fl_ifname); t += strlen(t); #endif if (ipf->fl_group == 0xffffffff) --OXfL5xGRrasGEqWY-- --E39vaYmALEf/7YXx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/2kEfZNmEsrl+ROERAvKOAKCdBuVRdNXfCuEHrEPOR2dEtCuxZwCfWnEv EDpMH40RtjMvrUQfy/FGCm4= =RIt7 -----END PGP SIGNATURE----- --E39vaYmALEf/7YXx--