Bjoern A. Zeeb
05fc416403
During if_vmove() we call if_detach_internal() which in turn calls the event
...
handler notifying about interface departure and one of the consumers will
detach if_bpf.
There is no way for us to re-attach this easily as the DLT and hdrlen are
only given on interface creation.
Add a function to allow us to query the DLT and hdrlen from a current
BPF attachment and after if_attach_internal() manually re-add the if_bpf
attachment using these values.
Found by panics triggered by nd6 packets running past BPF_MTAP() with no
proper if_bpf pointer on the interface.
Also add a basic DDB show function to investigate the if_bpf attachment
of an interface.
Reviewed by: gnn
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D5896
2016-04-11 10:00:38 +00:00
..
2015-08-24 23:40:36 +00:00
2015-07-31 20:25:54 +00:00
2016-04-11 10:00:38 +00:00
2016-04-11 10:00:38 +00:00
2016-02-01 17:41:21 +00:00
2016-03-28 18:25:54 +00:00
2015-12-31 05:03:27 +00:00
2015-11-06 15:33:27 +00:00
2015-08-12 20:21:04 +00:00
2014-11-09 16:33:04 +00:00
2016-01-09 16:34:37 +00:00
2014-11-07 15:14:10 +00:00
2014-11-09 16:33:04 +00:00
2014-11-09 16:33:04 +00:00
2015-06-13 19:39:21 +00:00
2015-03-02 20:00:03 +00:00
2015-03-02 20:00:03 +00:00
2014-12-12 16:10:42 +00:00
2016-03-31 18:53:13 +00:00
2016-01-22 15:00:01 +00:00
2015-09-05 05:33:20 +00:00
2014-10-05 21:27:26 +00:00
2016-01-22 15:00:01 +00:00
2015-11-25 07:31:59 +00:00
2016-02-01 17:41:21 +00:00
2016-01-09 16:34:37 +00:00
2016-01-09 16:34:37 +00:00
2016-01-09 16:34:37 +00:00
2016-04-10 23:07:00 +00:00
2015-09-10 05:59:39 +00:00
2016-04-10 23:07:00 +00:00
2014-12-25 21:32:37 +00:00
2016-01-09 16:34:37 +00:00
2016-04-06 04:58:20 +00:00
2016-04-06 04:58:20 +00:00
2015-12-31 05:03:27 +00:00
2015-12-31 05:03:27 +00:00
2016-01-09 16:34:37 +00:00
2015-10-03 09:15:23 +00:00
2015-04-21 10:35:23 +00:00
2015-04-07 21:31:17 +00:00
2016-02-01 17:41:21 +00:00
2015-07-29 08:12:05 +00:00
2015-12-16 09:18:20 +00:00
2015-10-21 19:56:16 +00:00
2015-07-12 18:14:38 +00:00
2015-05-02 20:37:40 +00:00
2015-12-31 05:03:27 +00:00
2014-11-11 10:22:33 +00:00
2015-11-14 13:34:03 +00:00
2014-12-01 11:45:24 +00:00
2014-10-20 14:42:42 +00:00
2016-04-11 10:00:38 +00:00
2016-02-29 03:54:51 +00:00
2014-11-09 16:33:04 +00:00
2016-04-05 00:09:19 +00:00
2015-07-10 05:51:36 +00:00
2015-07-10 05:51:36 +00:00
2016-01-22 15:00:01 +00:00
2015-11-17 14:39:33 +00:00
2016-02-01 17:41:21 +00:00
2016-01-25 06:33:15 +00:00
2016-01-25 06:33:15 +00:00
2016-01-25 06:33:15 +00:00
2016-01-25 06:33:15 +00:00
2016-03-24 07:54:56 +00:00
2016-03-24 11:40:10 +00:00
2016-03-24 11:40:10 +00:00
2015-08-29 04:33:31 +00:00
2015-08-28 05:58:16 +00:00
2016-03-29 13:56:59 +00:00
2015-12-28 09:26:07 +00:00
2015-05-16 13:11:35 +00:00
2015-01-18 18:06:40 +00:00
2015-01-18 18:06:40 +00:00
2016-02-03 11:49:51 +00:00
2016-01-27 00:20:07 +00:00