Page MenuHomeFreeBSD

Ensure consistent error messages from ifconfig
ClosedPublic

Authored by hselasky on Nov 26 2020, 9:48 AM.
Tags
None
Referenced Files
F172392351: D27380.diff
Fri, Sep 18, 4:18 AM
Unknown Object (File)
Fri, Sep 11, 2:16 PM
Unknown Object (File)
Tue, Sep 8, 10:59 PM
Unknown Object (File)
Sat, Sep 5, 5:39 PM
Unknown Object (File)
Sat, Sep 5, 3:42 PM
Unknown Object (File)
Sat, Sep 5, 3:23 PM
Unknown Object (File)
Sat, Sep 5, 11:23 AM
Unknown Object (File)
Sat, Sep 5, 3:09 AM
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