Date: Sun, 10 Dec 2000 17:32:09 +0100 From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: Dag-Erling Smorgrav <des@ofug.org> Cc: Hajimu UMEMOTO <ume@mahoroba.org>, arch@FreeBSD.ORG Subject: Re: %a and %A formats Message-ID: <99149.976465929@critter> In-Reply-To: Your message of "10 Dec 2000 17:27:18 %2B0100." <xzpy9xogs2h.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <xzpy9xogs2h.fsf@flood.ping.uio.no>, Dag-Erling Smorgrav writes: >Hajimu UMEMOTO <ume@mahoroba.org> writes: >> I don't like this. I've tired enough to address af dependent >> programming. What character will you introduce for IPv7 or IPv8...? >> Furthermore, IPv6 address has scope that IPv4 doesn't have. %a should >> takes struct sockaddr * for the argument instead of struct in_addr *, >> and should be address independent. > >Many (if not most) of the places in the kernel that need this don't >have a struct sockaddr available. What we *really* need is a %{type} construct with dynmically loadable renderes for different types. Then you could printf("Deny %{proto} from ${ip} to ${ip}", ...) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99149.976465929>