From owner-freebsd-arm@freebsd.org Wed Sep 27 15:43:58 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 038DDE07932 for ; Wed, 27 Sep 2017 15:43:58 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DC7547C4A4 for ; Wed, 27 Sep 2017 15:43:57 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: adbb7414-a39a-11e7-a937-4f970e858fdb X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.ore.mailhop.org (Halon) with ESMTPSA id adbb7414-a39a-11e7-a937-4f970e858fdb; Wed, 27 Sep 2017 15:43:59 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v8RFhspL002110; Wed, 27 Sep 2017 09:43:54 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1506527034.31939.8.camel@freebsd.org> Subject: Re: Unplugged Ethernet Interface listed as RUNNING From: Ian Lepore To: Russell Haley , freebsd-arm Date: Wed, 27 Sep 2017 09:43:54 -0600 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Sep 2017 15:43:58 -0000 On Wed, 2017-09-27 at 07:06 -0700, Russell Haley wrote: > Hi, > > I'm poking at stuff on my Hummingboard. I was using my wired > interface > ffec0 and then switched over to my wifi stick. After unplugging the > etherent cable, ifconfig still lists the ffec0 interface as UP and > RUNNING still has an ip address even though it was assigned via dhcp. > This was consistent over multiple attempts with and without the wifi > stick invovled. The status indication correctly shows no carrier when > the ethernet is unplugged. > > I did a comparison to my BBB running Debian Jessie and when the > ethernet cable is removed, the interface is still listed as UP but > not > as RUNNING (although there is no status indication in Linux). > > My question: Should FreeBSD be showing the ffec0 interface as RUNNING > even though there is no cable plugged in? Should the DHCP aquired ip > address be removed from the ifconfig listing when the ethernet cable > is unplugged? > The re0 and re1 interfaces on my x86 desktop system behave the same way; I think all of that is normal.  In freebsd, the RUNNING flag is commented in the header file as "[driver] resources allocated". You definitely wouldn't want the interface to lose its IP address just because the connection is down, that could lead to all your open tcp connections dying because of a momentary loss of carrier. -- Ian > Thanks > > Russ > > root@imx6:~ # ifconfig > ffec0: flags=8843 metric 0 > mtu 1500 >         options=80008 >         ether d0:63:b4:00:8f:19 >         hwaddr d0:63:b4:00:8f:19 >         inet 192.168.2.2 netmask 0xffffff00 broadcast 192.168.2.255 >         media: Ethernet autoselect (none) >         status: no carrier >         nd6 options=29 > lo0: flags=8049 metric 0 mtu 16384 >         options=600003 >         inet6 ::1 prefixlen 128 >         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2 >         inet 127.0.0.1 netmask 0xff000000 >         groups: lo >         nd6 options=21 > wlan0: flags=8843 metric 0 > mtu 1500 >         ether 60:a4:4c:ec:c9:a5 >         hwaddr 60:a4:4c:ec:c9:a5 >         inet 192.168.2.62 netmask 0xffffff00 broadcast 192.168.2.255 >         groups: wlan >         ssid Haleys_DownStairs channel 8 (2447 MHz 11g) bssid > ac:9e:17:67:85:90 >         regdomain FCC country US authmode WPA2/802.11i privacy ON >         deftxkey UNDEF AES-CCM 2:128-bit txpower 30 bmiss 7 scanvalid > 60 >         protmode CTS wme roaming MANUAL >         media: IEEE 802.11 Wireless Ethernet DS/1Mbps mode 11g >         status: associated >         nd6 options=29 > > > root@imx6:~ # cat /etc/rc.conf > hostname="imx6" > ifconfig_DEFAULT="DHCP" > wlans_run0="wlan0" > ifconfig_wlan0="WPA SYNCDHCP" > sshd_enable="YES" > sendmail_enable="NONE" > sendmail_submit_enable="NO" > sendmail_outbound_enable="NO" > sendmail_msp_queue_enable="NO" > growfs_enable="YES" > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org > "