Page MenuHomeFreeBSD

Ensure consistent error messages from ifconfig
ClosedPublic

Authored by hselasky on Nov 26 2020, 9:48 AM.
Tags
None
Referenced Files
F153678995: D27380.id80014.diff
Wed, Apr 22, 9:05 PM
Unknown Object (File)
Tue, Apr 21, 4:00 AM
Unknown Object (File)
Mon, Apr 20, 10:57 PM
Unknown Object (File)
Mon, Apr 20, 12:25 PM
Unknown Object (File)
Wed, Apr 15, 11:08 AM
Unknown Object (File)
Tue, Apr 14, 3:59 AM
Unknown Object (File)
Sun, Apr 12, 4:10 AM
Unknown Object (File)
Mon, Apr 6, 3:31 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