From owner-freebsd-net@FreeBSD.ORG Sat Sep 2 17:40:32 2006 Return-Path: X-Original-To: freebsd-net@hub.freebsd.org Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B7CE16A585 for ; Sat, 2 Sep 2006 17:40:32 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 79E8C43D6D for ; Sat, 2 Sep 2006 17:40:30 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k82HeUAe066468 for ; Sat, 2 Sep 2006 17:40:30 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k82HeUDU066465; Sat, 2 Sep 2006 17:40:30 GMT (envelope-from gnats) Date: Sat, 2 Sep 2006 17:40:30 GMT Message-Id: <200609021740.k82HeUDU066465@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: George Mitchell Cc: Subject: Re: kern/102035: [plip] plip networking disables parallel port printing X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: George Mitchell List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Sep 2006 17:40:32 -0000 The following reply was made to PR kern/102035; it has been noted by GNATS. From: George Mitchell To: bug-followup@freebsd.org Cc: Subject: Re: kern/102035: [plip] plip networking disables parallel port printing Date: Sat, 2 Sep 2006 10:38:10 -0700 (PDT) Here is a corrected patch for this problem. In a default installation with IPv6 enabled, there will be attempts by both IPv4 and IPv6 to bring up plip[012]. The patch to rc.d/network_ipv6 detects when ipv6_ifconfig_plipn is set to NOAUTO. The patch to defaults/rc.conf sets both ifconfig_plip[012] and ipv6_ifconfig_plip[012] to NOAUTO, keeping the plip interfaces from being brought UP automatically. --- etc/defaults/rc.conf.orig Sat May 6 21:00:25 2006 +++ etc/defaults/rc.conf Sat Sep 2 10:29:53 2006 @@ -158,6 +158,10 @@ cloned_interfaces="" # List of cloned network interfaces to create. #cloned_interfaces="gif0 gif1 gif2 gif3" # Pre-cloning GENERIC config. ifconfig_lo0="inet 127.0.0.1" # default loopback device configuration. +# Average user does not want to start networking on plip[012]. +ifconfig_plip0="NOAUTO" +ifconfig_plip1="NOAUTO" +ifconfig_plip2="NOAUTO" #ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff" # Sample alias entry . #ifconfig_ed0_ipx="ipx 0x00010010" # Sample IPX address family entry. #ifconfig_fxp0_name="net0" # Change interface name from fxp0 to net0. @@ -358,6 +362,10 @@ #ipv6_prefix_ep0="fec0:0000:0000:0003 fec0:0000:0000:0004" # Examples for rtr. #ipv6_ifconfig_ed0="fec0:0:0:5::1 prefixlen 64" # Sample manual assign e ntry #ipv6_ifconfig_ed0_alias0="fec0:0:0:5::2 prefixlen 64" # Sample alias entry. +# Average user does not want to start networking on plip[012]. +ipv6_ifconfig_plip0="NOAUTO" +ipv6_ifconfig_plip1="NOAUTO" +ipv6_ifconfig_plip2="NOAUTO" ipv6_default_interface="NO" # Default output interface for scoped addrs. # Now this works only for IPv6 link local # multicast addrs. --- etc/rc.d/network_ipv6.orig Sat May 6 21:00:26 2006 +++ etc/rc.d/network_ipv6 Sat Sep 2 10:13:21 2006 @@ -47,8 +47,19 @@ case ${ipv6_network_interfaces} in [Aa][Uu][Tt][Oo]) - # Get a list of network interfaces - ipv6_network_interfaces="`ifconfig -l`" + # Get a list of network interfaces, minus the NOAUTO ones + ipv6_network_interfaces='' + _args="`ifconfig -l`" + for i in $_args; do + eval _arg=\$ipv6_ifconfig_$i + case $_arg in + [Nn][Oo][Aa][Uu][Tt][Oo]) + ;; + *) + ipv6_network_interfaces="$ipv6_network_interface s $i" + ;; + esac + done ;; [Nn][Oo][Nn][Ee]) ipv6_network_interfaces=''