freebsd-nq/sbin/ifconfig
Bjoern A. Zeeb ac606903a8 ifconfig: print interface name on SIOCIFCREATE2 error
We have repeatedly gotten reports of unclassified SIOCIFCREATE2 errors
(usually "Device not configured").  This can happen if there is
configuration for interfaces in rc.conf which do not (yet) exist and
we try to configure.  I can, e.g., provoke this by configuring wlan
interfaces with their physical interface not installed.
In order to cut support (guesswork) down print the name of the
interface to be configured with the error message.
Hopefully this will help us in the future to improve other configuration
or driver problems.

Sponsored by:	The FreeBSD Foundation
MFC after:	3 days
2022-09-06 13:09:39 +00:00
..
tests
af_inet6.c ifconfig: warn if setting an Internet address without mask 2021-11-09 09:33:01 -06:00
af_inet.c ifconfig: warn if setting an Internet address without mask 2021-11-09 09:33:01 -06:00
af_link.c ifconfig(8): optimize -f ether:dash mode 2020-06-26 16:20:34 +00:00
af_nd6.c
carp.c sbin/ifconfig: Use a global libifconfig handle 2021-03-02 21:15:40 -05:00
ifbridge.c sbin/ifconfig: Use a global libifconfig handle 2021-03-02 21:15:40 -05:00
ifclone.c sbin/ifconfig: Use a global libifconfig handle 2021-03-02 21:15:40 -05:00
ifconfig.8 Fix wrong capitalization in man page references. 2022-08-13 20:46:59 +02:00
ifconfig.c ifconfig: print interface name on SIOCIFCREATE2 error 2022-09-06 13:09:39 +00:00
ifconfig.h ifconfig: add setifcapnv() 2022-05-24 23:59:33 +03:00
iffib.c
ifgif.c
ifgre.c Add GRE-in-UDP encapsulation support as defined in RFC8086. 2019-04-24 09:05:45 +00:00
ifgroup.c sbin/ifconfig: Use a global libifconfig handle 2021-03-02 21:15:40 -05:00
ifieee80211.c ifconfig(8): Fix a typo in source code comment 2022-09-03 14:55:54 +02:00
ifipsec.c
iflagg.c sbin/ifconfig: Use a global libifconfig handle 2021-03-02 21:15:40 -05:00
ifmac.c
ifmedia.c ifconfig: Reuse media state in ifmedia_getstate 2021-04-15 22:32:25 -04:00
ifpfsync.c pfsync: fix incorrect enabling of defer mode 2021-12-06 13:25:14 +01:00
ifstf.c if_stf: add 6rd support 2021-11-20 19:29:01 +01:00
ifvlan.c ifconfig: fix vlan/vlanproto reconfiguration 2022-07-21 18:36:01 +02:00
ifvxlan.c Ensure consistent error messages from ifconfig(8). 2020-11-26 16:36:50 +00:00
Makefile if_stf: add 6rd support 2021-11-20 19:29:01 +01: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 sbin/ifconfig: Use a global libifconfig handle 2021-03-02 21:15:40 -05:00