Page MenuHomeFreeBSD

ifnet: Assert that we are assigning network stack correctly
ClosedPublic

Authored by zlei on Oct 7 2024, 3:43 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 7, 2:32 AM
Unknown Object (File)
Fri, Oct 25, 7:30 PM
Unknown Object (File)
Tue, Oct 22, 7:22 PM
Unknown Object (File)
Tue, Oct 22, 10:41 AM
Unknown Object (File)
Tue, Oct 22, 6:43 AM
Unknown Object (File)
Oct 8 2024, 3:55 AM

Details

Summary

It makes no senses to assign NULL vnet to an interface. Add an
assertion for that.

This will also help diagnosing problem report [1].

  1. https://bugs.freebsd.org/275381

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable