Page MenuHomeFreeBSD

Ensure consistent error messages from ifconfig
ClosedPublic

Authored by hselasky on Nov 26 2020, 9:48 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 22, 6:19 PM
Unknown Object (File)
Sun, Mar 15, 5:11 AM
Unknown Object (File)
Sat, Mar 14, 11:44 PM
Unknown Object (File)
Sat, Mar 14, 5:35 PM
Unknown Object (File)
Feb 20 2026, 7:41 AM
Unknown Object (File)
Feb 8 2026, 12:20 PM
Unknown Object (File)
Feb 8 2026, 7:38 AM
Unknown Object (File)
Jan 31 2026, 10:24 PM
Subscribers

Details

Summary

If multiple threads are invoking ifconfig XXX create a race may occur which can lead to two different error messages for the same error.

a) ifconfig: SIOCIFCREATE2: File exists
b) ifconfig: interface XXX already exists

This patch ensures ifconfig prints the same error code for the same case.

MFC after: 1 week
Sponsored by: Mellanox Technologies // NVIDIA Networking

Diff Detail

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