Page MenuHomeFreeBSD

Ensure consistent error messages from ifconfig
ClosedPublic

Authored by hselasky on Nov 26 2020, 9:48 AM.
Tags
None
Referenced Files
F163262969: D27380.diff
Tue, Jul 21, 1:37 PM
Unknown Object (File)
Tue, Jun 30, 2:45 PM
Unknown Object (File)
Tue, Jun 30, 2:22 PM
Unknown Object (File)
Tue, Jun 23, 5:16 PM
Unknown Object (File)
May 10 2026, 12:32 PM
Unknown Object (File)
May 3 2026, 1:42 PM
Unknown Object (File)
Apr 28 2026, 4:40 AM
Unknown Object (File)
Apr 27 2026, 5:51 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