freebsd-dev/sbin
Alexander V. Chernikov 6d204407ec ifconfig: fix ifconfig IFX inet[6] ADDR -alias
Internally, inet and inet6 family handlers store state for
 address addition and deletion separately, as, for example,
 "ifconfig lo0 inet 127.0.0.2/32" triggers a) deletion of the
 first interface address and b) addition of a new one.
The current logic behind handling "-alias" being the last argument
 is to copy the address from "addition" state to the "deletion"
 state. It is done by the generic ifconfig code, which explicitly
 typecasts opaque handler state pointers to "struct ifreq", which
 doesn't work in the Netlink case.

Fix this by introducing family-specific "af_copyaddr" handler,
 which removes the peeking & typecasting logic from the generic code.

Reported by:	otis
Tested by:	otis
2023-05-25 15:03:35 +00:00
..
adjkerntz spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
bectl bectl.8: update /home 2023-05-24 22:08:39 -05:00
bsdlabel Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
camcontrol spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD 2023-05-12 10:44:04 -06:00
ccdconfig spdx: The BSD-2-Clause-NetBSD identifier is obsolete, drop -NetBSD 2023-05-12 10:44:04 -06:00
clri Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
comcontrol spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
conscontrol spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ddb spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
decryptcore Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
devd spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
devfs spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
devmatch Make SYNOPSIS match DESCRIPTION. 2022-11-03 00:20:12 +01:00
dhclient Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
dmesg Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
dump Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
dumpfs Yet another try to fix printf format conflict. 2023-04-30 00:00:23 -07:00
dumpon Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
etherswitchcfg spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
fdisk spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ffsinfo Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
fsck Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
fsck_ffs Fix size differences between architectures of the UFS/FFS CGSIZE macro value. 2023-05-15 12:57:15 -07:00
fsck_msdosfs spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
fsdb Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
fsirand spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
gbde spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
geom spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ggate spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
growfs Fix size differences between architectures of the UFS/FFS CGSIZE macro value. 2023-05-15 12:57:15 -07:00
gvinum spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hastctl spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
hastd spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ifconfig ifconfig: fix ifconfig IFX inet[6] ADDR -alias 2023-05-25 15:03:35 +00:00
init Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
ipf Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
ipfw spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
kldconfig spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
kldload spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
kldstat spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
kldunload spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
ldconfig spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
md5 md5: Add missing <errno.h>. 2023-05-11 06:24:02 +00:00
mdconfig spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
mdmfs spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
mknod Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mksnap_ffs mksnap_ffs.8: update /home examples 2023-05-24 10:31:50 -05:00
mount spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
mount_cd9660 Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mount_fusefs spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
mount_msdosfs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mount_nfs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mount_nullfs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mount_udf Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
mount_unionfs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
natd Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
newfs Fix size differences between architectures of the UFS/FFS CGSIZE macro value. 2023-05-15 12:57:15 -07:00
newfs_msdos spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
nfsiod Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
nos-tun spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
nvmecontrol nvmecontrol: Fix power subcommand output. 2023-05-15 16:48:50 -04:00
pfctl pfctl: match expand_label_addr() prototype to definition 2023-04-26 17:09:46 +02:00
pfilctl spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
pflogd Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
ping spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
quotacheck Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
rcorder spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
reboot spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
recoverdisk Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
resolvconf pkgbase: Put resolvconf in its own package 2022-10-26 19:46:26 +02:00
restore Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
route spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
routed Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
rtsol
savecore Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
setkey Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
shutdown Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
swapon Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
sysctl Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
tests
tunefs Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
umount Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
veriexec veriexec: Add SPDX-License-Identifier 2023-04-16 21:23:00 -04:00
zfsbootcfg Update/fix Makefile.depend for userland 2023-04-18 17:14:23 -07:00
Makefile Retire WITHOUT_CXX option 2023-01-26 21:13:16 -05:00
Makefile.amd64 retire sconfig(8) ce(4)/cp(4) configuration tool 2022-12-13 15:25:13 -05:00
Makefile.arm
Makefile.i386 retire sconfig(8) ce(4)/cp(4) configuration tool 2022-12-13 15:25:13 -05:00
Makefile.inc
Makefile.powerpc64