ae
9c4008f018
Set M_BCAST and M_MCAST flags on mbuf sent via divert socket.
...
r290383 has changed how mbufs sent by divert socket are handled.
Previously they are always handled by slow path processing in ip_input().
Now ip_tryforward() is invoked from ip_input() before in_broadcast() check.
Since diverted packet lost all mbuf flags, it passes the broadcast check
in ip_tryforward() due to missing M_BCAST flag. In the result the broadcast
packet is forwarded to the wire instead of be consumed by network stack.
Add in_broadcast() check to the div_output() function. And restore the
M_BCAST flag if destination address is broadcast for the given network
interface.
PR: 209491
MFC after: 1 week
2017-05-17 09:04:09 +00:00
..
2017-01-15 18:00:45 +00:00
2016-10-06 16:28:34 +00:00
2017-05-10 19:41:52 +00:00
2017-04-26 06:20:58 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-03-11 04:57:52 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-03-14 20:57:54 +00:00
2017-02-28 23:42:47 +00:00
2017-05-17 00:34:34 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2015-12-08 10:50:03 +00:00
2017-03-31 00:41:54 +00:00
2017-04-10 08:19:35 +00:00
2017-04-10 08:19:35 +00:00
2017-05-13 18:41:24 +00:00
2017-05-15 21:58:36 +00:00
2017-05-15 21:58:36 +00:00
2016-03-31 00:53:23 +00:00
2016-07-28 18:39:30 +00:00
2017-02-28 23:42:47 +00:00
2016-02-11 17:07:19 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-05-17 00:34:34 +00:00
2017-04-11 19:20:20 +00:00
2017-02-28 23:42:47 +00:00
2017-01-25 19:04:08 +00:00
2017-01-25 19:04:08 +00:00
2017-05-17 09:04:09 +00:00
2016-05-26 21:40:13 +00:00
2016-01-09 09:34:39 +00:00
2016-12-29 19:57:46 +00:00
2017-04-03 02:44:40 +00:00
2017-05-17 00:34:34 +00:00
2017-02-28 23:42:47 +00:00
2016-07-06 14:09:49 +00:00
2017-04-11 19:20:20 +00:00
2017-03-14 20:57:54 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-03-25 15:06:28 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-05-15 21:58:36 +00:00
2016-12-26 11:06:41 +00:00
2016-12-06 10:21:25 +00:00
2016-12-26 11:06:41 +00:00
2016-12-26 11:06:41 +00:00
2016-12-26 11:06:41 +00:00
2016-12-26 11:06:41 +00:00
2016-12-26 11:06:41 +00:00
2016-12-07 19:30:59 +00:00
2016-12-26 11:06:41 +00:00
2016-12-06 10:21:25 +00:00
2016-04-07 09:10:34 +00:00
2016-12-07 19:30:59 +00:00
2016-12-26 11:06:41 +00:00
2016-12-26 11:06:41 +00:00
2017-02-13 11:37:52 +00:00
2016-12-26 11:06:41 +00:00
2016-05-02 20:56:11 +00:00
2017-02-13 11:37:52 +00:00
2017-04-28 15:38:34 +00:00
2016-12-26 11:06:41 +00:00
2017-04-29 19:20:50 +00:00
2016-12-26 11:06:41 +00:00
2016-12-06 10:21:25 +00:00
2016-12-26 11:06:41 +00:00
2016-12-26 11:06:41 +00:00
2017-02-28 23:42:47 +00:00
2016-12-26 11:06:41 +00:00
2016-05-12 16:34:59 +00:00
2017-04-29 09:57:27 +00:00
2016-02-17 18:04:22 +00:00
2016-12-06 10:21:25 +00:00
2017-04-29 19:20:50 +00:00
2017-04-26 19:26:40 +00:00
2016-04-07 09:10:34 +00:00
2017-04-29 19:20:50 +00:00
2017-04-29 19:20:50 +00:00
2016-03-11 23:18:06 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-02-03 17:02:57 +00:00
2015-12-24 19:09:48 +00:00
2017-02-28 23:42:47 +00:00
2017-02-16 20:47:41 +00:00
2016-10-06 16:28:34 +00:00
2017-04-26 06:20:58 +00:00
2017-04-24 22:35:00 +00:00
2016-08-02 06:36:47 +00:00
2016-01-27 00:45:46 +00:00
2017-04-10 08:19:35 +00:00
2016-07-06 16:17:13 +00:00
2016-07-06 16:17:13 +00:00
2017-05-10 23:32:31 +00:00
2016-12-25 17:37:18 +00:00
2017-02-28 23:42:47 +00:00
2017-05-15 21:58:36 +00:00
2017-04-21 06:05:34 +00:00
2017-04-20 19:19:33 +00:00
2017-03-21 06:39:49 +00:00
2017-03-21 06:39:49 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2017-04-10 08:19:35 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00
2016-06-02 17:51:29 +00:00
2017-05-15 21:58:36 +00:00
2017-02-28 23:42:47 +00:00
2017-02-28 23:42:47 +00:00