Date: Thu, 11 Mar 2010 17:56:46 +0000 (UTC) From: Qing Li <qingli@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/net if_tap.c route.h Message-ID: <201003111757.o2BHv5cA097303@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
qingli 2010-03-11 17:56:46 UTC
FreeBSD src repository
Modified files:
sys/net if_tap.c route.h
Log:
SVN rev 205024 on 2010-03-11 17:56:46Z 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.
MFC after: 3 days
Revision Changes Path
1.83 +2 -0 src/sys/net/if_tap.c
1.89 +3 -1 src/sys/net/route.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003111757.o2BHv5cA097303>
