From owner-freebsd-bugs Fri May 12 19:40: 6 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 8BE1E37B703 for ; Fri, 12 May 2000 19:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id TAA69973; Fri, 12 May 2000 19:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: by hub.freebsd.org (Postfix, from userid 32767) id 4B58B37B63D; Fri, 12 May 2000 19:35:17 -0700 (PDT) Message-Id: <20000513023517.4B58B37B63D@hub.freebsd.org> Date: Fri, 12 May 2000 19:35:17 -0700 (PDT) From: larse@isi.edu To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: conf/18521: 4.0-STABLE: problem in rc.network (with patch) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 18521 >Category: conf >Synopsis: 4.0-STABLE: problem in rc.network (with patch) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri May 12 19:40:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Lars Eggert >Release: FreeBSD-4.0-STABLE >Organization: USC/ISI >Environment: FreeBSD hbo.isi.edu 4.0-STABLE FreeBSD 4.0-STABLE #36: Thu May 11 16:30:43 PDT 2000 larse@hbo.isi.edu:/usr/src/sys/compile/PRECISION i386 >Description: I've finally tracked down a strange problem that I've also seen under 3.X before. It seems that setting the NIS domain name in rc.network before ipfw is initialized causes ipfw rule adds later on in the boot process to be extremely slow. (I see about a minute delay per rule). Fix: Set the NIS domain name after ipfw is initialized. Note: I've no idea why this fixes it, or why setting the NIS domain name would slow down ipfw to a crawl... >How-To-Repeat: Include these lines in /etc/rc.conf: firewall_enable="client" firewall_type="/etc/rc.firewall.local" nisdomainname="mydomain" nis_client_enable="YES" Reboot. >Fix: --- rc.network 2000/03/31 01:54:16 1.3 +++ rc.network 2000/05/13 02:25:27 @@ -20,17 +20,6 @@ echo -n ' hostname' fi - # Set the domainname if we're using NIS - # - case ${nisdomainname} in - [Nn][Oo] | '') - ;; - *) - domainname ${nisdomainname} - echo -n ' domain' - ;; - esac - echo '.' # Initial ATM interface configuration @@ -404,6 +393,17 @@ case ${portmap_enable} in [Yy][Ee][Ss]) echo -n ' portmap'; ${portmap_program:-/usr/sbin/portmap} ${portmap_flags} + ;; + esac + + # Set the domainname if we're using NIS + # + case ${nisdomainname} in + [Nn][Oo] | '') + ;; + *) + domainname ${nisdomainname} + echo -n ' domain' ;; esac >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message