From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 13 13:53:16 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBFB316A4CE for ; Fri, 13 Aug 2004 13:53:16 +0000 (GMT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id BABCD43D41 for ; Fri, 13 Aug 2004 13:53:16 +0000 (GMT) (envelope-from freebsd@joelink.net) Received: from [192.168.0.3] (c-67-162-72-190.client.comcast.net[67.162.72.190]) by comcast.net (rwcrmhc13) with ESMTP id <20040813135310015008vgfhe>; Fri, 13 Aug 2004 13:53:16 +0000 Message-ID: <411CC7C2.8000102@joelink.net> Date: Fri, 13 Aug 2004 08:53:06 -0500 From: Joseph M Link User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nicolas B?rard Nault References: <4962.69.70.227.33.1092276363.squirrel@webmail.north-zone.net> <20040812232902.GC7173@gothmog.gr> In-Reply-To: <20040812232902.GC7173@gothmog.gr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: inet_ntop( ) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Aug 2004 13:53:17 -0000 >>I wondered, why does inet_ntop() returns addresses in the format >>x:x:x:x:x:x:x.x.x.x ? This can be very annoying if that's not what you >>want. Is there another standard function, other than inet_ntop(), to do >>the same work ? I am going to guess you're asking why you're getting that format instead of the straight colon separated version. That format is a standard form for ipv4 mapped or compatible addresses. You can detect this ahead of time with the following macros: IN6_IS_ADDR_V4MAPPED(struct in6_addr *) IN6_IS_ADDR_V4COMPAT(struct in6_addr *) Joe