a format error in pf_print_host()
Max Laier
max at love2party.net
Tue Nov 20 06:31:58 PST 2007
On Tuesday 20 November 2007, JINMEI Tatuya / 神明達哉 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?
--
/"\ Best regards, | mlaier at freebsd.org
\ / Max Laier | ICQ #67774661
X http://pf4freebsd.love2party.net/ | mlaier at EFnet
/ \ ASCII Ribbon Campaign | Against HTML Mail and News
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: This is a digitally signed message part.
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20071120/cc4eb8bf/attachment.pgp
More information about the freebsd-net
mailing list