freebsd-dev/sbin
Kristof Provost b82b8055ad ifconfig: fix vlan/vlanproto reconfiguration
The setvlantag() and setvlanproto() functions are used in two scenarios:
when we create a new vlan interface and when we update an existing
interface.
These are distinguished by the getvlan() at the end of the functions. If
this fails we assume that is because the interface doesn't exist (so
we're creating a new one). We only update the 'params' struct, and
expect the settings to be applied when we vlan_create().

However, if we're updating an existing interface we do not retrieve the
current settings, and can end up invalidating settings.

Fix this by using the settings we retrieved while checking which
scenario we're in.

Note that we do not address this for setvlandev(), because if_vlan does
not allow the vlan parent device to be changed without disassociating it
first (with ifconfig vlanX -vlandev).

Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D35848
2022-07-21 18:36:01 +02:00
..
adjkerntz adjkerntz(8): revert "detect extra jailed invokation to keep logs clean" 2022-06-23 21:46:08 +07:00
bectl bectl: push space-in-name check down into libbe 2022-04-02 21:04:31 -05:00
bsdlabel *: Do not use the no-op -r flag for bsdlabel(8) 2022-03-17 17:28:07 +01:00
camcontrol camcontrol(8): Fix typo in a source code comment 2022-03-28 19:36:01 +02:00
ccdconfig *: Do not use the no-op -r flag for bsdlabel(8) 2022-03-17 17:28:07 +01:00
clri
comcontrol
conscontrol
ddb mac: add new mac_ddb(4) policy 2022-07-18 22:06:15 +00:00
decryptcore
devd mixer: remove volume backwards compat, add % interpretation 2022-06-17 22:50:58 -05:00
devfs devfs.rules: Do not expose "log" in the default devfs rules. 2022-05-24 09:54:38 -04:00
devmatch devmatch: Properly ignore commented fields 2022-06-27 14:44:23 -06:00
dhclient dhclient: fix pcp:pcp cleanup failure 2022-06-17 09:10:52 +02:00
dmesg dmesg: Better wording from review 2022-05-07 09:55:40 -06:00
dump
dumpfs
dumpon dumpon: warn if the configured netdump link is down 2022-05-14 10:27:54 -03:00
etherswitchcfg
fdisk
ffsinfo
fsck
fsck_ffs Ask to look for alternate UFS2 superblocks when the standard one is unusable. 2022-07-20 22:52:10 -07:00
fsck_msdosfs
fsdb Update fsdb(8) to reflect new structure of fsck_ffs(8). 2022-02-23 15:40:58 -08:00
fsirand
gbde
geom Clarify when GEOM utilities exit with success or failure. 2022-07-16 10:26:51 -07:00
ggate
growfs Correctly update fs_dsize in growfs(8) 2022-06-27 21:48:24 -07:00
gvinum GEOM: Introduce gctl_add_param() API. 2022-03-07 11:12:25 -05:00
hastctl
hastd Remove PAGE_SIZE from hastd 2022-06-17 10:36:17 +01:00
ifconfig ifconfig: fix vlan/vlanproto reconfiguration 2022-07-21 18:36:01 +02:00
init init(8): use proper boolean type for globals 2022-02-21 20:16:13 -04:00
ipf ipfilter: Support only jails in VNET 2022-07-07 07:53:45 -07:00
ipfw ipfw: add support radix tables and table lookup for MAC addresses 2022-06-04 19:12:29 +03:00
kldconfig
kldload kldload: Bring functionality in line with manual page 2022-06-17 16:53:28 +02:00
kldstat
kldunload
ldconfig
md5 update external URLs 2022-02-05 08:19:56 +00:00
mdconfig
mdmfs
mknod
mksnap_ffs
mount mount: revert the active vnode reporting feature 2022-06-15 07:24:55 -07:00
mount_cd9660
mount_fusefs fusefs: use the fsname mount option if set 2022-04-29 11:10:03 -06:00
mount_msdosfs
mount_nfs mount_nfs.8: Update BUGS section for NFSv4.1/4.2 2022-07-03 13:37:23 -07:00
mount_nullfs Improve description of the nocache option. 2022-05-06 13:03:30 +02:00
mount_udf
mount_unionfs
natd
newfs Delete UFS2 backup superblock recovery info when building a UFS1 filesystem. 2022-07-20 22:52:10 -07:00
newfs_msdos newfs_msdos: Fix warnings that arise when compiled for makefs 2022-05-10 17:26:50 -04:00
nfsiod
nos-tun
nvmecontrol Correct a typo in a string literal. 2022-06-07 21:48:59 +02:00
pfctl pfctl(8): Fix a typo in a source code comment 2022-07-16 13:48:30 +02:00
pfilctl
pflogd
ping ping: add missing test files to Makefile 2022-05-20 22:13:02 -05:00
ping6
quotacheck
rcorder
reboot Cross-reference nextboot(8) and freebsd-update(8) 2022-03-29 15:15:35 +02:00
recoverdisk
resolvconf
restore
route
routed Bump .Dd for recently modified manual pages 2022-06-27 18:20:03 +02:00
rtsol
savecore savecore: add an option to save a live minidump 2022-04-18 12:56:16 -03:00
sconfig
setkey If setkey(8) is used without ipsec.ko loaded beforehand, 2022-05-05 19:02:29 +07:00
shutdown boottrace: annotate init and shutdown utilities 2022-02-21 20:16:07 -04:00
swapon
sysctl sysctl.8: Reference sysctl(9) 2022-06-30 16:22:01 +02:00
tests
tunefs
umount umount(8): Remove a double word in a source code comment 2022-04-09 10:13:45 +02:00
veriexec Add -S option to veriexec 2022-07-19 08:59:53 -07:00
zfsbootcfg
Makefile
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.inc
Makefile.powerpc64