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, Nov 1, 12:45 AM
Unknown Object (File)
Thu, Oct 30, 8:19 AM
Unknown Object (File)
Sun, Oct 26, 8:33 PM
Unknown Object (File)
Sun, Oct 26, 1:36 PM
Unknown Object (File)
Sat, Oct 25, 2:50 PM
Unknown Object (File)
Tue, Oct 21, 6:34 AM
Unknown Object (File)
Sat, Oct 18, 1:30 AM
Unknown Object (File)
Oct 16 2025, 10:36 AM
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 Not Applicable
Unit
Tests Not Applicable