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)
Thu, Apr 23, 5:46 PM
Unknown Object (File)
Tue, Apr 21, 11:23 AM
Unknown Object (File)
Wed, Apr 15, 6:47 PM
Unknown Object (File)
Fri, Apr 10, 2:50 PM
Unknown Object (File)
Mar 20 2026, 3:53 AM
Unknown Object (File)
Mar 19 2026, 7:18 AM
Unknown Object (File)
Mar 16 2026, 8:17 AM
Unknown Object (File)
Mar 16 2026, 2:26 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