From owner-freebsd-net@FreeBSD.ORG Tue Jul 1 17:23:07 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94A8F1065703 for ; Tue, 1 Jul 2008 17:23:07 +0000 (UTC) (envelope-from petar@smokva.net) Received: from morrison.andev.ch (morrison.andev.ch [78.47.142.202]) by mx1.freebsd.org (Postfix) with ESMTP id 5CB998FC25 for ; Tue, 1 Jul 2008 17:23:07 +0000 (UTC) (envelope-from petar@smokva.net) Received: from pintail.smokva.net (84-74-146-124.dclient.hispeed.ch [84.74.146.124]) by morrison.andev.ch (Postfix) with ESMTP id 543925DADC for ; Tue, 1 Jul 2008 19:22:28 +0200 (CEST) Date: Tue, 1 Jul 2008 19:23:04 +0200 From: Petar Bogdanovic To: freebsd-net@freebsd.org Message-ID: <20080701172304.GA17817@pintail.smokva.net> Mail-Followup-To: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Subject: dhclient.c: script_go() vs. priv_script_go() 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: Tue, 01 Jul 2008 17:23:07 -0000 Hi, it's probably because I don't understand the code but may I ask what script_go() is supposed to do? The only function in dhclient.c using execve() is priv_script_go() and this gets executed only once in main() with $reason = PREINIT. That's why I looked at the code in the first place: I can't make dhclient run dhclient-script with anything else than PREINIT. I would expect at least one additional run with i.e. $reason = BOUND. Thanks for the enlightenment, Petar