Date: Wed, 2 Jun 2010 10:06:56 +1200 From: Andrew Thompson <thompsa@FreeBSD.org> To: freebsd-net@freebsd.org Cc: qingli@freebsd.org Subject: Link state changes Message-ID: <AANLkTimd0bHDhkYpkdJjTHE-jH5WzYz8hz4OhLNTN4tJ@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
> Revision 205024 - (annotate) > Thu Mar 11 17:56:46 2010 UTC (2 months, 3 weeks ago) by qingli > > The if_tap interface is of IFT_ETHERNET type, but it > does not set or update the if_link_state variable. > As such RT_LINK_IS_UP() fails for the if_tap interface. > > Also, the RT_LINK_IS_UP() needs to bypass all loopback > interfaces because loopback interfaces are considered > up logically as long as the system is running. > > This patch fixes the above issues by setting and updating > the if_link_state variable when the tap interface is > opened or closed respectively. Similary approach is > already done in the if_tun device. This is also a problem for bridge(4) and possibly ef(4), edesc(4) and epair(4). Should the same change be applied to them? Andrew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimd0bHDhkYpkdJjTHE-jH5WzYz8hz4OhLNTN4tJ>