freebsd-src/sbin/ifconfig
Alan Somers 126bfd62c4 MFC r317755, r317758
r317755:
Various Coverity fixes in ifconfig(8)

* Exit early if kldload(2) fails (1011259). This is the only change that
  affects ifconfig's behavior.
* Close memory and resource leaks (1305624, 1305205, 1007100)
* Mark usage() as _Noreturn (1305806, 1305750)
* Fix some dereference after null checks (1011474, 270774)

Reported by:	Coverity
CID:		1305624, 1305205, 1007100, 1305806, 1305750, 1011474,
CID:		270774, 1011259
Reviewed by:	cem
Sponsored by:	Spectra Logic Corp
Differential Revision:	https://reviews.freebsd.org/D10587

r317758:
Unbreak ifconfig for mlx4en(4) after r317755

ifconfig doesn't correctly infer mlx interfaces' module names, so it will
attempt to load the mlx(4) module even when not necessary.

Reported by:	rstone
X-MFC-With:	317755
Sponsored by:	Spectra Logic Corp
2017-05-30 22:45:01 +00:00
..
af_atalk.c MFC r288305: 2015-10-26 03:43:28 +00:00
af_inet6.c MFC r317755, r317758 2017-05-30 22:45:01 +00:00
af_inet.c MFC r299873 2016-05-20 07:14:03 +00:00
af_ipx.c
af_link.c MFC r318160, 318176: Persistently store NIC's hardware MAC address, and add 2017-05-17 22:29:25 +00:00
af_nd6.c MFC r317715: 2017-05-30 22:44:05 +00:00
carp.c MFC r288305: 2015-10-26 03:43:28 +00:00
ifbridge.c MFC r288305: 2015-10-26 03:43:28 +00:00
ifclone.c MFC r317755, r317758 2017-05-30 22:45:01 +00:00
ifconfig.8 MFC r290450: 2015-11-13 01:03:59 +00:00
ifconfig.c MFC r317755, r317758 2017-05-30 22:45:01 +00:00
ifconfig.h MFC r295836: 2016-03-06 08:52:03 +00:00
iffib.c MFC r299873 2016-05-20 07:14:03 +00:00
ifgif.c Re-add deprecated options as no-op to prevent breakage of backward 2015-09-21 03:03:57 +00:00
ifgre.c MFC r299873 2016-05-20 07:14:03 +00:00
ifgroup.c MFC r288305: 2015-10-26 03:43:28 +00:00
ifieee80211.c MFC r299921 2016-06-07 16:53:05 +00:00
iflagg.c MFC r317755, r317758 2017-05-30 22:45:01 +00:00
ifmac.c MFC r299873 2016-05-20 07:14:03 +00:00
ifmedia.c MFC r299873 2016-05-20 07:14:03 +00:00
ifpfsync.c MFC r317755, r317758 2017-05-30 22:45:01 +00:00
ifvlan.c MFC r288305: 2015-10-26 03:43:28 +00:00
ifvxlan.c MFC r288305: 2015-10-26 03:43:28 +00:00
Makefile MFC r270064,r270068,r270069,r270115,r270129,r270287,r270822,r271014, 2015-08-15 17:52:55 +00:00
regdomain.c ifconfig(8) is documented to take a ISO 3166-1 country code to set the 2009-12-15 20:44:12 +00:00
regdomain.h
sfp.c MFC r296902: 2016-04-07 07:12:14 +00:00