Qing Li
355ad3ead4
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
2010-03-11 17:56:46 +00:00
..
2009-08-12 17:28:53 +00:00
2009-11-20 21:12:40 +00:00
2009-11-20 18:49:20 +00:00
2009-08-12 17:28:53 +00:00
2010-02-20 00:19:21 +00:00
2009-04-02 13:02:12 +00:00
2009-08-12 17:28:53 +00:00
2009-08-23 20:40:19 +00:00
2009-04-16 20:30:28 +00:00
2009-06-21 10:29:31 +00:00
2009-06-21 10:29:31 +00:00
2010-03-09 01:11:45 +00:00
2009-10-01 20:32:29 +00:00
2009-04-30 14:25:44 +00:00
2009-06-21 10:29:31 +00:00
2009-06-21 10:29:31 +00:00
2009-09-03 21:10:57 +00:00
2009-04-16 20:30:28 +00:00
2009-06-05 14:55:22 +00:00
2010-03-02 17:40:48 +00:00
2009-08-01 19:26:27 +00:00
2009-07-23 20:46:49 +00:00
2009-11-30 21:25:57 +00:00
2009-04-16 20:30:28 +00:00
2009-11-06 14:55:01 +00:00
2009-10-14 11:55:55 +00:00
2010-03-06 21:22:28 +00:00
2010-03-02 17:40:48 +00:00
2009-08-01 19:26:27 +00:00
2009-06-24 10:32:44 +00:00
2009-06-21 10:29:31 +00:00
2009-10-22 06:17:04 +00:00
2009-07-16 21:13:04 +00:00
2010-03-01 17:05:46 +00:00
2010-03-01 17:05:46 +00:00
2009-06-21 10:29:31 +00:00
2010-03-09 00:52:16 +00:00
2010-02-06 13:49:35 +00:00
2009-12-30 21:35:34 +00:00
2009-12-30 21:35:34 +00:00
2010-02-21 15:25:47 +00:00
2009-07-11 15:02:45 +00:00
2009-08-01 19:26:27 +00:00
2009-08-01 19:26:27 +00:00
2009-08-01 19:26:27 +00:00
2010-03-11 17:56:46 +00:00
2010-02-28 16:25:49 +00:00
2010-02-13 16:04:58 +00:00
2010-02-21 00:07:45 +00:00
2010-02-24 15:54:24 +00:00
2010-02-20 22:47:20 +00:00
2009-06-21 10:29:31 +00:00
2010-03-01 00:42:36 +00:00
2010-03-01 00:42:36 +00:00
2010-03-01 00:43:05 +00:00
2009-10-19 15:19:14 +00:00
2009-10-18 22:54:09 +00:00
2009-06-12 15:44:35 +00:00
2010-03-09 01:11:45 +00:00
2010-03-09 01:11:45 +00:00
2010-03-07 15:37:58 +00:00
2009-08-01 19:26:27 +00:00
2009-07-16 21:13:04 +00:00
2009-08-01 19:26:27 +00:00
2010-03-09 01:11:45 +00:00
2010-03-11 17:56:46 +00:00
2009-12-30 21:35:34 +00:00
2010-02-09 22:39:34 +00:00
2010-02-04 07:55:42 +00:00
2010-03-02 06:58:58 +00:00
2010-03-02 06:58:58 +00:00