freebsd-skq/sbin/ifconfig
Hans Petter Selasky 21f5dc86d3 Fix bug in ifconfig preventing proper VLAN creation.
Detection of interface type by filter must happen before detection of
interface type by prefix. Else the following sequence of commands will
try to create a LAGG interface instead of a VLAN interface, which
accidentially worked previously, because the date pointed to by the
ifr_data pointer was not parsed by VLAN create ioctl(2). This is a
regression after r368229, because the VLAN creation now parses the
ifr_data field.

How to reproduce:
# ifconfig lagg0 create
# ifconfig lagg0.256 create

Differential Revision:	https://reviews.freebsd.org/D27521
Reviewed by:		kib@ and kevans@
Reported by:		raul.munoz@custos.es
Sponsored by:		Mellanox Technologies // NVIDIA Networking
2020-12-09 20:13:12 +00:00
..
tests
af_inet6.c
af_inet.c
af_link.c ifconfig(8): optimize -f ether:dash mode 2020-06-26 16:20:34 +00:00
af_nd6.c
carp.c
ifbridge.c libifconfig: Add function to get bridge status 2020-07-01 02:32:41 +00:00
ifclone.c Fix bug in ifconfig preventing proper VLAN creation. 2020-12-09 20:13:12 +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
ifgif.c
ifgre.c
ifgroup.c
ifieee80211.c Ensure consistent error messages from ifconfig(8). 2020-11-26 16:36:50 +00:00
ifipsec.c
iflagg.c Ensure consistent error messages from ifconfig(8). 2020-11-26 16:36:50 +00:00
ifmac.c
ifmedia.c ifconfig: properly detect invalid mediaopt keywords. 2020-11-02 21:47:34 +00:00
ifpfsync.c
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
ifwg.c Import kernel WireGuard support 2020-11-29 19:38:03 +00:00
Makefile Import kernel WireGuard support 2020-11-29 19:38:03 +00:00
Makefile.depend
Makefile.depend.options
sfp.c Move ifconfig SFP status functionality into libifconfig 2020-08-09 16:27:28 +00:00