summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorqingli <qingli@FreeBSD.org>2010-04-02 05:05:51 +0000
committerqingli <qingli@FreeBSD.org>2010-04-02 05:05:51 +0000
commit65f5ca51888f0f99a568861371923ce2679c5267 (patch)
tree98b08d79d36dd2b2d5c38133ccd39dbf6bd50ce1 /sbin
parente9b171c822867ae0b95f9dd207e61b63a3a89474 (diff)
downloadFreeBSD-src-65f5ca51888f0f99a568861371923ce2679c5267.zip
FreeBSD-src-65f5ca51888f0f99a568861371923ce2679c5267.tar.gz
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.
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud