Page MenuHomeFreeBSD

ifconfig: abort if loading a module fails other than for ENOENT
ClosedPublic

Authored by asomers on Dec 25 2022, 6:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 13, 1:43 PM
Unknown Object (File)
Sun, Jun 7, 3:45 PM
Unknown Object (File)
May 13 2026, 10:29 PM
Unknown Object (File)
May 13 2026, 10:29 PM
Unknown Object (File)
May 13 2026, 10:22 PM
Unknown Object (File)
May 3 2026, 1:46 PM
Unknown Object (File)
May 2 2026, 9:14 PM
Unknown Object (File)
Apr 30 2026, 12:16 PM
Subscribers

Details

Summary

If "ifconfig create" tries to load a kernel module, and the module
exists but can't be loaded, fail the command with a useful error
message. This is helpful, for example, when trying to create a cloned
interface in a vnet jail. But ignore ENOENT, because sometimes ifconfig
can't correctly guess the name of the required kernel module.

MFC after: 2 weeks

Test Plan

Manually tested

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 48883
Build 45772: arc lint + arc unit