Date: Fri, 2 Apr 2010 05:05:51 +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: <201004020506.o3256CVC086685@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
qingli 2010-04-02 05:05:51 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
sys/net if_tap.c route.h
Log:
SVN rev 206068 on 2010-04-02 05:05:51Z by qingli
MFC 205024
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.
Revision Changes Path
1.81.2.3 +2 -0 src/sys/net/if_tap.c
1.85.2.4 +3 -1 src/sys/net/route.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004020506.o3256CVC086685>
