From owner-freebsd-current@FreeBSD.ORG Thu Apr 19 12:54:39 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 350E9106566C for ; Thu, 19 Apr 2012 12:54:39 +0000 (UTC) (envelope-from simon@comsys.ntu-kpi.kiev.ua) Received: from comsys.kpi.ua (comsys.kpi.ua [77.47.192.42]) by mx1.freebsd.org (Postfix) with ESMTP id D5F2F8FC0A for ; Thu, 19 Apr 2012 12:54:38 +0000 (UTC) Received: from pm513-1.comsys.kpi.ua ([10.18.52.101] helo=pm513-1.comsys.ntu-kpi.kiev.ua) by comsys.kpi.ua with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1SKqsf-0007QG-8U; Thu, 19 Apr 2012 15:54:37 +0300 Received: by pm513-1.comsys.ntu-kpi.kiev.ua (Postfix, from userid 1001) id 2378F1CC36; Thu, 19 Apr 2012 15:54:37 +0300 (EEST) Date: Thu, 19 Apr 2012 15:54:36 +0300 From: Andrey Simonenko To: Rick Macklem Message-ID: <20120419125436.GA82169@pm513-1.comsys.ntu-kpi.kiev.ua> References: <857698325.1023052.1306788962581.JavaMail.root@erie.cs.uoguelph.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <857698325.1023052.1306788962581.JavaMail.root@erie.cs.uoguelph.ca> User-Agent: Mutt/1.5.21 (2010-09-15) X-Authenticated-User: simon@comsys.ntu-kpi.kiev.ua X-Authenticator: plain X-Sender-Verify: SUCCEEDED (sender exists & accepts mail) X-Exim-Version: 4.63 (build at 28-Apr-2011 07:11:12) X-Date: 2012-04-19 15:54:37 X-Connected-IP: 10.18.52.101:37801 X-Message-Linecount: 47 X-Body-Linecount: 32 X-Message-Size: 1920 X-Body-Size: 1190 Cc: FreeBSD-Current Subject: Re: mountd, rpc.lockd and rpc.statd patches for testing X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2012 12:54:39 -0000 On Mon, May 30, 2011 at 04:56:02PM -0400, Rick Macklem wrote: > Hi, > > I have patches for the mountd, rpc.statd and rpc.lockd daemons > that are meant to keep them from failing when a dynamically > selected port# is not available for some combination of > udp,tcp X ipv4,ipv6 > > If anyone would like to test these patches, they can be found > at: > http://people.freebsd.org/~rmacklem/mountd.patch > statd.patch > lockd.patch > > Although I think I got them correct, they are rather big and ugly. > I have checked this update for mountd in 10-CURRENT and has two questions: 1. What is the sense to try to use the same port number for all supported netconfigs if specific port number is not given in a command line option? 2. What is the sense of specifying specific IP addresses for mountd and similar RPC programs that do not have predefined port numbers? ---------- One comment for netconfig related functions usage. Each setnetconfig() call allocates memory and depending on implementation can use other resources, so endnetconfig() should be called before reusing netconfig handle.