diff options
author | Zhenlei Huang <zlei@FreeBSD.org> | 2024-10-22 04:32:24 +0000 |
---|---|---|
committer | Zhenlei Huang <zlei@FreeBSD.org> | 2024-10-22 04:32:24 +0000 |
commit | d1d839d0b593541174ca48c675c9eff4ddb4715e (patch) | |
tree | 1af7047df3110d66cf5cf18ddf48eba5d3576fc4 /contrib/tcpdump/print-sunatm.c | |
parent | caa309c8811d62a24cd07e3a1f6e9095eaf10c90 (diff) | |
download | src-d1d839d0b593541174ca48c675c9eff4ddb4715e.tar.gz src-d1d839d0b593541174ca48c675c9eff4ddb4715e.zip |
ifnet: Assert that we are assigning network stack correctly
It makes no sense to assign NULL vnet to an interface when the kernel
option VIMAGE is enabled. Add an assertion to catch that.
This will also help diagnosing problem report [1] and [2].
1. https://bugs.freebsd.org/275381
2. https://bugs.freebsd.org/282168
Reviewed by: kp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D46982
Diffstat (limited to 'contrib/tcpdump/print-sunatm.c')
0 files changed, 0 insertions, 0 deletions