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
F153090631: D15449.diff
Sun, Apr 19, 1:58 AM
Unknown Object (File)
Fri, Apr 17, 9:23 AM
Unknown Object (File)
Thu, Apr 16, 8:53 AM
Unknown Object (File)
Mon, Apr 13, 8:55 AM
Unknown Object (File)
Fri, Apr 10, 6:56 PM
Unknown Object (File)
Sun, Apr 5, 9:21 PM
Unknown Object (File)
Thu, Apr 2, 6:58 AM
Unknown Object (File)
Tue, Mar 31, 4:36 PM
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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable