Page MenuHomeFreeBSD

Use the thread's vnet when iterating over interfaces.
ClosedPublic

Authored by markj on May 16 2018, 12:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jul 14, 3:52 AM
Unknown Object (File)
Mon, Jul 13, 4:15 PM
Unknown Object (File)
Sat, Jun 27, 4:10 AM
Unknown Object (File)
Thu, Jun 25, 6:21 PM
Unknown Object (File)
May 21 2026, 10:31 AM
Unknown Object (File)
May 14 2026, 11:29 AM
Unknown Object (File)
May 6 2026, 11:14 PM
Unknown Object (File)
May 1 2026, 10:51 AM
Subscribers

Details

Summary

For now, only permit the use of interfaces from vnet0; netdump may only
be configured from the host, and it's not clear to me that interface
names are unique across vnets. This fixes a panic when configuring
netdump with VIMAGE enabled.

Also fix a resource leak that occurs if the priv_check() in set_dumper()
or clear_dumper() fails. Note that netdump_mbuf_drain() is idempotent.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 16616
Build 16523: arc lint + arc unit