From owner-freebsd-net@FreeBSD.ORG Thu May 10 23:35:46 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DDE1C16A400; Thu, 10 May 2007 23:35:46 +0000 (UTC) (envelope-from bushman@freebsd.org) Received: from mail.r61.net (mail.r61.net [195.208.245.249]) by mx1.freebsd.org (Postfix) with ESMTP id CF20A13C45A; Thu, 10 May 2007 23:35:45 +0000 (UTC) (envelope-from bushman@freebsd.org) Received: from [83.188.106.197] (m83-188-106-197.cust.tele2.ru [83.188.106.197]) (authenticated bits=0) by mail.r61.net (8.14.1/8.14.1) with ESMTP id l4AN3mv7031228 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 11 May 2007 03:03:55 +0400 (MSD) (envelope-from bushman@freebsd.org) Message-ID: <4643A4CB.4070801@freebsd.org> Date: Fri, 11 May 2007 03:03:39 +0400 From: Michael Bushkov User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Cc: Brooks Davis , freebsd-arch@freebsd.org Subject: [PATCH] getipnodebyXXX() via gethostbyXXX() patch X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 May 2007 23:35:47 -0000 Hi, During my Summer Of Code 2006 work I've done a lot of refactoring in libc's nsswitch, which was basically needed to separate libc and nsswitch modules. One part of that refactoring was reimplementation of getipnodebyXXX() family of functions through gethostbyXXX() family of functions. Actually both of these groups of functions had a lot of duplicated (or very similar) code, so such reimplementation seems to be quite logic to me. The patch is here: http://rsu.ru/~bushman/name6.patch It would be great to have it tested (maybe with nsswitch regression tests - /tools/regresion/lib/libc/nss) and to hear comments about it. -- With best regards, Michael Bushkov Southern Federal University