From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3740 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] inet_ntop() and ipv4 address Date: Thu, 25 Jul 2013 03:42:45 -0400 Message-ID: <20130725074244.GG4284@brightrain.aerifal.cx> References: <20130725122127.4dcbf8de@sibserver.ru> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1374738176 3446 80.91.229.3 (25 Jul 2013 07:42:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jul 2013 07:42:56 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3744-gllmg-musl=m.gmane.org@lists.openwall.com Thu Jul 25 09:42:58 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1V2GCP-0003Dn-Ux for gllmg-musl@plane.gmane.org; Thu, 25 Jul 2013 09:42:58 +0200 Original-Received: (qmail 26623 invoked by uid 550); 25 Jul 2013 07:42:57 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 26613 invoked from network); 25 Jul 2013 07:42:57 -0000 Content-Disposition: inline In-Reply-To: <20130725122127.4dcbf8de@sibserver.ru> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3740 Archived-At: On Thu, Jul 25, 2013 at 12:21:27PM +0800, orc wrote: > inet_ntop() does not embed plain ipv4 address at end (like > "::ffff:10.0.0.1"). This patch fixes it, but it is a bit ugly. Without > it is a bit harder to read logs of some daemons that support only one > address family socket binding and seeing output of 'ss -tn'. Adopt if > needed. I just committed a simplified version, as well as a bugfix for an issue I noticed due to looking at this code again. Let me know if you think anything still needs to be changed. Rich