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
F109821147: D46982.id144399.diff
Sun, Feb 9, 11:32 PM
F109821080: D46982.id.diff
Sun, Feb 9, 11:30 PM
F109820441: D46982.id145331.diff
Sun, Feb 9, 11:18 PM
Unknown Object (File)
Fri, Feb 7, 10:32 AM
Unknown Object (File)
Wed, Feb 5, 5:01 PM
Unknown Object (File)
Mon, Jan 20, 9:33 PM
Unknown Object (File)
Mon, Jan 20, 9:13 PM
Unknown Object (File)
Sat, Jan 18, 1:49 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