Date: Tue, 20 Nov 2007 15:31:32 +0100 From: Max Laier <max@love2party.net> To: freebsd-net@freebsd.org Cc: JINMEI Tatuya / =?utf-8?q?=E7=A5=9E=E6=98=8E=E9=81=94=E5=93=89?= <jinmei@isl.rdc.toshiba.co.jp> Subject: Re: a format error in pf_print_host() Message-ID: <200711201531.41579.max@love2party.net> In-Reply-To: <m2ejelypa0.wl%jinmei@isl.rdc.toshiba.co.jp> References: <m2ejelypa0.wl%jinmei@isl.rdc.toshiba.co.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711201531.41579.max>