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)
Fri, Mar 24, 9:20 PM
Unknown Object (File)
Sat, Mar 18, 6:14 AM
Unknown Object (File)
Feb 22 2023, 1:09 AM
Unknown Object (File)
Jan 28 2023, 10:04 PM
Unknown Object (File)
Jan 9 2023, 7:47 PM
Unknown Object (File)
Dec 30 2022, 8:12 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