Date: Wed, 20 Sep 2006 21:30:29 GMT From: Rob Austein <sra@hactrn.net> To: freebsd-bugs@FreeBSD.org Subject: Re: conf/103428: devd(8): devd brings up network interfaces early and wrong Message-ID: <200609202130.k8KLUTGj082894@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR conf/103428; it has been noted by GNATS. From: Rob Austein <sra@hactrn.net> To: Brooks Davis <brooks@one-eyed-alien.net> Cc: Rob Austein <sra@hactrn.net>, freebsd-gnats-submit@freebsd.org Subject: Re: conf/103428: devd(8): devd brings up network interfaces early and wrong Date: Wed, 20 Sep 2006 17:23:31 -0400 > One possible issue is that the current check is bypased if grep > isn't available (say if /usr is an nfs mount). If that's the case > for you, the following patch may fix things. Thanks, but no, local UFS2 filesystems. > The other thing I can think of is that there's a delay in the interface > transitioning to the UP state. If that's the case I'm not sure what > the answer is. We might need to use something else to de-bounce > the interface configuration. It might be worth a try to modify > etc/rc.d/devd to run after network_ipv6. Just tried that, didn't help. So the ordering is not the problem per se, sorry for the distraction, but pccard_ether is still messing up the IPv6 configuration. At this point I suspect that the problem is that pccard_ether is attempting to bring up IPv6 on interface hardware that's not connected to anything, which is confusing /etc/network.subr into listening for router advertisements when it should not. I added a debug line to network.subr to make network6_interface_setup log the interface it's about to whack, enabled rc_debug, and got the console output below. It's not touching bge0 or lo0, but it's trying to bring up IPv6 on bge1 and plip0, neither of which is connected to anything. /etc/rc: DEBUG: Cloned: bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=1b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING> inet6 fe80::230:48ff:fe82:11dc%bge0 prefixlen 64 tentative scopeid 0x1 inet 147.28.0.19 netmask 0xffffff00 broadcast 147.28.0.255 ether 00:30:48:82:11:dc media: Ethernet autoselect (none) status: no carrier lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet 127.0.0.1 netmask 0xff000000 /etc/rc: DEBUG: The following interfaces were not configured: /etc/rc.d/ipfilter: DEBUG: checkyesno: ipfilter_enable is set to NO. /etc/rc: DEBUG: checkyesno: devd_enable is set to YES. Starting devd. /etc/rc: DEBUG: run_rc_command: _doit: /sbin/devd /etc/pccard_ether: DEBUG: run_rc_command: evaluating checkauto(). /etc/pccard_ether: DEBUG: run_rc_command: evaluating pccard_ether_start(). /etc/pccard_ether: DEBUG: run_rc_command: evaluating checkauto(). /etc/pccard_ether: DEBUG: run_rc_command: evaluating pccard_ether_start(). /etc/rc.d/netif: DEBUG: run_rc_command: evaluating network_start(). /etc/rc.d/netif: DEBUG: The following interfaces were not configured: bge1 /etc/rc.d/ipfilter: DEBUG: checkyesno: ipfilter_enable is set to NO. /etc/rc.d/bridge: DEBUG: run_rc_command: evaluating bridge_start(). /etc/pccard_ether: DEBUG: checkyesno: ipv6_enable is set to YES. /etc/pccard_ether: DEBUG: Interface: bge1 net.inet6.ip6.accept_rtadv: 0 -> 1 /etc/pccard_ether: DEBUG: run_rc_command: evaluating checkauto(). /etc/pccard_ether: DEBUG: run_rc_command: evaluating pccard_ether_start(). /etc/rc.d/netif: DEBUG: run_rc_command: evaluating network_start(). /etc/rc.d/netif: DEBUG: The following interfaces were not configured: plip0 /etc/rc.d/ipfilter: DEBUG: checkyesno: ipfilter_enable is set to NO. /etc/rc.d/bridge: DEBUG: run_rc_command: evaluating bridge_start(). /etc/pccard_ether: DEBUG: checkyesno: ipv6_enable is set to YES. /etc/pccard_ether: DEBUG: Interface: plip0 net.inet6.ip6.accept_rtadv: 1 -> 1 get_llflag() failed, anyway I'll try sendmsg on plip0: Can't assign requested address sendmsg on plip0: Can't assign requested address sendmsg on plip0: Can't assign requested address
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609202130.k8KLUTGj082894>