From owner-freebsd-arch Sun Dec 10 8:32:32 2000 From owner-freebsd-arch@FreeBSD.ORG Sun Dec 10 08:32:30 2000 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from critter.freebsd.dk (flutter.freebsd.dk [212.242.40.147]) by hub.freebsd.org (Postfix) with ESMTP id 000A037B400 for ; Sun, 10 Dec 2000 08:32:25 -0800 (PST) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.1/8.11.1) with ESMTP id eBAGW9L99151; Sun, 10 Dec 2000 17:32:09 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Dag-Erling Smorgrav Cc: Hajimu UMEMOTO , arch@FreeBSD.ORG Subject: Re: %a and %A formats In-Reply-To: Your message of "10 Dec 2000 17:27:18 +0100." Date: Sun, 10 Dec 2000 17:32:09 +0100 Message-ID: <99149.976465929@critter> From: Poul-Henning Kamp Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message , Dag-Erling Smorgrav writes: >Hajimu UMEMOTO 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