freebsd-dev/sbin/ifconfig
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
..
tests
af_inet6.c Update for IETF draft-ietf-6man-ipv6only-flag. 2019-03-06 23:31:42 +00:00
af_inet.c ifconfig: eliminate trailing whitespace 2019-02-26 03:34:47 +00:00
af_link.c ifconfig(8): optimize -f ether:dash mode 2020-06-26 16:20:34 +00:00
af_nd6.c Update for IETF draft-ietf-6man-ipv6only-flag. 2019-03-06 23:31:42 +00:00
carp.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ifbridge.c libifconfig: Add function to get bridge status 2020-07-01 02:32:41 +00:00
ifclone.c Ensure consistent error messages from ifconfig(8). 2020-11-26 16:36:50 +00:00
ifconfig.8 ifconfig.8: Improve formatting of -f in synopsis 2020-11-01 22:50:21 +00:00
ifconfig.c Ensure consistent error messages from ifconfig(8). 2020-11-26 16:36:50 +00:00
ifconfig.h Ensure consistent error messages from ifconfig(8). 2020-11-26 16:36:50 +00:00
iffib.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ifgif.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ifgre.c Add GRE-in-UDP encapsulation support as defined in RFC8086. 2019-04-24 09:05:45 +00:00
ifgroup.c ifconfig: eliminate trailing whitespace 2019-02-26 03:34:47 +00:00
ifieee80211.c Ensure consistent error messages from ifconfig(8). 2020-11-26 16:36:50 +00:00
ifipsec.c Update ifr_name before invoking IPSECSREQID ioctl, this fixes the case, 2018-09-22 16:30:48 +00:00
iflagg.c Ensure consistent error messages from ifconfig(8). 2020-11-26 16:36:50 +00:00
ifmac.c various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
ifmedia.c ifconfig: properly detect invalid mediaopt keywords. 2020-11-02 21:47:34 +00:00
ifpfsync.c ifconfig: fix endianness bug displaying pfsync interfaces 2019-01-28 18:34:04 +00:00
ifvlan.c Ensure consistent error messages from ifconfig(8). 2020-11-26 16:36:50 +00:00
ifvxlan.c Ensure consistent error messages from ifconfig(8). 2020-11-26 16:36:50 +00:00
Makefile Move ifconfig SFP status functionality into libifconfig 2020-08-09 16:27:28 +00:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
Makefile.depend.options Add Makefile.depend.options 2019-12-11 17:37:37 +00:00
sfp.c Move ifconfig SFP status functionality into libifconfig 2020-08-09 16:27:28 +00:00