From owner-freebsd-net@FreeBSD.ORG Tue Nov 20 14:31:58 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1308216A419 for ; Tue, 20 Nov 2007 14:31:58 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.174]) by mx1.freebsd.org (Postfix) with ESMTP id AAE8713C43E for ; Tue, 20 Nov 2007 14:31:57 +0000 (UTC) (envelope-from max@love2party.net) Received: from amd64.laiers.local (dslb-088-066-037-173.pools.arcor-ip.net [88.66.37.173]) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis) id 0MKwpI-1IuU8d0vCC-00089p; Tue, 20 Nov 2007 15:31:43 +0100 From: Max Laier Organization: FreeBSD To: freebsd-net@freebsd.org Date: Tue, 20 Nov 2007 15:31:32 +0100 User-Agent: KMail/1.9.7 References: In-Reply-To: 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="nextPart2013385.9WMvrFsTYj"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200711201531.41579.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1+Uny0pqUpPQXakWOzm6NPMyCuBp1AG4jlTndF dhqT4xFa0NNbfcAjk82vMM09KIgIpc62ONgHlNi7VOeLYSVS2k 5fFVD3QQwU8A+7G+64LdMvlHj/h/JyHLnNraNdPddo= Cc: JINMEI Tatuya / =?utf-8?q?=E7=A5=9E=E6=98=8E=E9=81=94=E5=93=89?= Subject: Re: a format error in pf_print_host() X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Nov 2007 14:31:58 -0000 --nextPart2013385.9WMvrFsTYj Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 20 November 2007, JINMEI Tatuya / =E7=A5=9E=E6=98=8E=E9=81=94=E5= =93=89 wrote: > (This should probably be reported to an OpenBSD forum, but I'm not > subscribing to any of the lists, so I'm posting this to freebsd-net. > I believe pf maintainers watch this list, too...) > > I've found a minor error in pf_print_host() which is revealed for some > time of IPv6 addresses. This routine always (perhaps unintentionally) > assumes abbreviate-able consecutive zero's, so, for example, it > formats "1:2:3:4:5:6:7:8" as ":2:3:4:5:6:7:8". This can be confirmed > by the sample code attached to this message by > - saving the file as e.g. "foo.c" > - cc -o foo foo.c > - ./foo 1:2:3:4:5:6:7:8 > > I've also attached a proposed patch to this problem. The diff was > made against 6-STABLE, but it's probably applicable to other versions. Seems your diff got lost during transmission, could you resend - please? =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 --nextPart2013385.9WMvrFsTYj 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) iD8DBQBHQu/NXyyEoT62BG0RAh/VAJ4jz5NVsCkCYbuAkdY0/BZTGrdgYQCdE9zz kE9CHkhouLeiJjgCUfWLtZE= =U3Th -----END PGP SIGNATURE----- --nextPart2013385.9WMvrFsTYj--