a format error in pf_print_host()
- From: JINMEI Tatuya / 神明達哉 <jinmei@xxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 20 Nov 2007 23:17:43 +0900
(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.
JINMEI, Tatuya
Communication Platform Lab.
Corporate R&D Center, Toshiba Corp.
jinmei@xxxxxxxxxxxxxxxxxxxxx
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: a format error in pf_print_host()
- From: JINMEI Tatuya / 神明達哉
- Re: a format error in pf_print_host()
- From: Max Laier
- Re: a format error in pf_print_host()
- Prev by Date: Routing with OpenVPN
- Next by Date: Re: a format error in pf_print_host()
- Previous by thread: Routing with OpenVPN
- Next by thread: Re: a format error in pf_print_host()
- Index(es):
Relevant Pages
|
|