a format error in pf_print_host()



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

Relevant Pages

  • RE: sunmanagers Digest, Vol 2, Issue 14
    ... Solaris x86 cisco vpn client ... Read this before posting to Sun-Managers ... SUMMARY: SunCluster 3.2: LogicalHost resource not bringing ... are many other lists and newsgroups for which the question may be completely ...
    (SunManagers)
  • Re: UKSF Stats (October 2005)
    ... I don't think that's the fault of the newsreaders, ... > posting went, on the same PC. ... Am I blaming things on my car, or just pointing out that it's ... I like to randomise my lists from time to time. ...
    (uk.sport.football)
  • Disk
    ... How to copy from Disk boot to another Disk in SUN OS 4. ... Subject: IMPORTANT: Read this before posting to Sun-Managers ... This message is posted periodically to sunmanagers on behalf of all ... > are many other lists and newsgroups for which the question may be ...
    (SunManagers)
  • Re: cash for cars
    ... I started getting money in the mail! ... > Business of developing Mailing Lists. ... > do your own Posting. ... or money making message board? ...
    (rec.autos.tech)
  • IMPORTANT: Read this before posting to Sun-Managers
    ... members of the Sunmanager's mailing list. ... Before posting, please stop for a minute and consider whether or not your ... comp.mail.sendmail newsgroup or the www.sendmail.org website. ... are many other lists and newsgroups for which the question may be completely ...
    (SunManagers)