From owner-svn-src-head@FreeBSD.ORG Mon Apr 18 22:40:23 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE81E10656D8; Mon, 18 Apr 2011 22:40:23 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 60E108FC17; Mon, 18 Apr 2011 22:40:23 +0000 (UTC) Received: by pzk27 with SMTP id 27so3023809pzk.13 for ; Mon, 18 Apr 2011 15:40:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:date:to:cc:subject:message-id:reply-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=UL8x+NW0Vw0xhFS0PR4iEacb4APlFHZqtZ8QTA+/oDo=; b=AsMdk2h3ctKrXcYn7QIqO0GWS06Ism342O+rwXu+377pSivgZXaO0FHPG25g5udbnF L4daigA4KTTRbuxrqfSWqzLz3zwJEYHxtQL8qJOZe5oDNfdIGJTmS3D7QEUnKiqtKhVW 0q9fc+Oe+qqLN1HJokS2vJHbAXFQIcsXbfCaU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=CC8flPZJjbFvDnFnOWQL81UCIFcErPjJcEPJv2/ZQUe8y5PnD3ziIf3OpQhXTscKKJ Hs34AaKCAimQz4G1whJkJ8otbh3sUmo7MpXDYjLekTNgtkK27JiEsGzkGOOZUSXPgoTg MXJizFNwp5YH9uYg3A9drvQTSBVphaixh5zB4= Received: by 10.68.49.103 with SMTP id t7mr7321571pbn.330.1303164791619; Mon, 18 Apr 2011 15:13:11 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id u6sm2549100pbq.43.2011.04.18.15.13.09 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 18 Apr 2011 15:13:10 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Mon, 18 Apr 2011 15:12:19 -0700 From: YongHyeon PYUN Date: Mon, 18 Apr 2011 15:12:19 -0700 To: Maxim Sobolev Message-ID: <20110418221219.GC1637@michelle.cdnetworks.com> References: <201104170605.p3H65cab028890@svn.freebsd.org> <20110418181314.GL16958@FreeBSD.org> <4DACB0C3.6000804@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4DACB0C3.6000804@FreeBSD.org> User-Agent: Mutt/1.4.2.3i Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Gleb Smirnoff , src-committers@freebsd.org Subject: Re: svn commit: r220736 - head/sbin/natd X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2011 22:40:23 -0000 On Mon, Apr 18, 2011 at 02:44:35PM -0700, Maxim Sobolev wrote: > On 4/18/2011 11:13 AM, Gleb Smirnoff wrote: > >This looks like a hack and better place for this hack would be shell > >scripts rather than nat daemon. > > Well, I am not sure how would you apply shell script in such case. The > problem with the original code is that natd just silently exits, leaving > machine without a network connection. For some reason this problem > started after upgrade from 7.4 to 8.2, perhaps there is some changes in > the dhclient which allows it to run is parallel with other start-up > activity. > SYNCDHCP may restore old behavior of dhclient. > And I don't see any problem with natd waiting indefinitely on the > interface to acquire IP address, it's no better and no worse than the > current behavior when the natd simply bails out. > > -Maxim