Hans Petter Selasky 05952067bb Ensure consistent error messages from ifconfig(8).
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.

Reviewed by:	imp@ and kib@
Differential Revision:	https://reviews.freebsd.org/D27380
MFC after:	1 week
Sponsored by:	Mellanox Technologies // NVIDIA Networking
2020-11-26 16:36:50 +00:00
..
2019-08-13 20:06:55 +00:00
2019-11-21 01:24:49 +00:00
2019-11-21 01:24:49 +00:00
2020-11-23 18:37:19 +00:00
2019-08-13 20:06:55 +00:00
2020-10-09 14:03:45 +00:00
2019-12-22 01:22:51 +00:00
2020-05-21 01:55:35 +00:00
2020-10-09 14:03:45 +00:00
2020-11-26 04:29:30 +00:00
2020-11-26 04:29:30 +00:00
2020-11-10 14:17:05 +00:00
2019-12-11 17:37:53 +00:00
2020-07-05 13:08:17 +00:00
2020-11-26 04:29:30 +00:00