Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Dec 2003 20:28:47 -0200
From:      Fred Souza <fred@storming.org>
To:        current@freebsd.org
Subject:   Re: Bug in recent kernel's ipmon?
Message-ID:  <20031212222847.GA24504@torment.storming.org>
In-Reply-To: <20031212185410.GB22739@torment.storming.org>
References:  <20031212185410.GB22739@torment.storming.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031212222847.GA24504>