freebsd-dev/sbin
Eygene Ryabinkin f74d5a7a20 if_lagg: allow to invoke SIOCSLAGGPORT multiple times in a row
Currently, 'ifconfig laggX down' does not remove members from this
lagg(4) interface.  So, 'service netif stop laggX' followed by
'service netif start laggX' will choke, because "stop" will leave
interfaces attached to the laggX and ifconfig from the "start" will
refuse to add already-existing interfaces.

The real-world case is when I am bundling together my Ethernet and
WiFi interfaces and using multiple profiles for accessing network in
different places: system being booted up with one profile, but later
this profile being exchanged to another one, followed by 'service
netif restart' will not add WiFi interface back to the lagg: the
"stop" action from 'service netif restart' will shut down my main WiFi
interface, so wlan0 that exists in the lagg0 will be destroyed and
purged from lagg0; the "start" action will try to re-add both
interfaces, but since Ethernet one is already in lagg0, ifconfig will
refuse to add the wlan0 from WiFi interface.

Since adding the interface to the lagg(4) when it is already here
should be an idempotent action: we're really not changing anything,
so this fix doesn't change the semantics of interface addition.

Approved by: thompsa
Reviewed by: emaste
MFC after: 1 week
2012-05-28 12:13:04 +00:00
..
adjkerntz
atacontrol Fixes to man8 groff mandoc style, usage mistakes, or typos. 2012-05-24 02:24:03 +00:00
atm
badsect
bsdlabel It seems that libdisk(3) incorrectly sets d_secperunit value. 2012-04-11 06:35:13 +00:00
camcontrol MFprojects/zfsd: 2012-05-24 11:07:39 +00:00
ccdconfig
clri
comcontrol
conscontrol
ddb
devd Fix world after byacc import: 2012-05-22 16:33:10 +00:00
devfs Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
dhclient
dmesg
dump mdoc: move two sentences from synopsis to description (where they really 2012-05-23 15:06:13 +00:00
dumpfs
dumpon
etherswitchcfg Fixes to man8 groff mandoc style, usage mistakes, or typos. 2012-05-24 02:24:03 +00:00
fdisk VMware environment is frequent nowadays. Add VMFS id. 2012-04-16 17:30:19 +00:00
fdisk_pc98
ffsinfo
fsck
fsck_ffs
fsck_msdosfs
fsdb
fsirand
gbde
geom Fixes to man8 groff mandoc style, usage mistakes, or typos. 2012-05-24 02:24:03 +00:00
ggate
growfs mdoc: remove redundant paragraph macro. 2012-05-12 14:46:49 +00:00
gvinum Fixes to man8 groff mandoc style, usage mistakes, or typos. 2012-05-24 02:24:03 +00:00
hastctl Fixes to man8 groff mandoc style, usage mistakes, or typos. 2012-05-24 02:24:03 +00:00
hastd Fixes to man8 groff mandoc style, usage mistakes, or typos. 2012-05-24 02:24:03 +00:00
ifconfig if_lagg: allow to invoke SIOCSLAGGPORT multiple times in a row 2012-05-28 12:13:04 +00:00
init init: Remove unnecessary 2-second delay before calling reboot(2). 2012-05-25 19:45:01 +00:00
ipf
ipfw mdoc: use Po and Pc macros instead of parens. Also avoid starting a line 2012-05-12 17:14:55 +00:00
iscontrol General mdoc(7) and typo fixes. 2012-05-12 15:08:22 +00:00
kldconfig
kldload
kldstat
kldunload
ldconfig
mca
md5 General mdoc(7) and typo fixes. 2012-05-10 02:07:00 +00:00
mdconfig Remove end of line whitespace. 2012-05-12 19:59:37 +00:00
mdmfs Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
mknod
mksnap_ffs
mount Fixes to man8 groff mandoc style, usage mistakes, or typos. 2012-05-24 02:24:03 +00:00
mount_cd9660
mount_ext2fs
mount_hpfs
mount_msdosfs
mount_nfs
mount_ntfs
mount_nullfs
mount_reiserfs
mount_std
mount_udf
mount_unionfs Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
nandfs mdoc: remove superfluous paragraph macro. 2012-05-17 11:29:22 +00:00
natd Fixes to man8 groff mandoc style, usage mistakes, or typos. 2012-05-24 02:24:03 +00:00
newfs
newfs_msdos
newfs_nandfs mdoc: remove whitespace. 2012-05-17 11:50:12 +00:00
nfsiod
nos-tun
pfctl
pflogd
ping
ping6 Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
quotacheck Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
rcorder Remove trailing whitespace per mdoc lint warning 2012-03-29 05:02:12 +00:00
reboot
recoverdisk
resolvconf
restore mdoc: move two sentences from synopsis to description (where they really 2012-05-23 15:06:13 +00:00
route
routed
rtsol
savecore Include <signal.h> (for SIGINFO). 2012-04-09 20:55:23 +00:00
sconfig
setkey Minor mdoc nits. 2012-05-13 14:16:04 +00:00
shutdown shutdown: Remove unnecessary 2-second delay. 2012-05-23 19:25:46 +00:00
spppcontrol
sunlabel mdoc: fix column names, indentation, column separation within each row, and 2012-04-07 09:05:30 +00:00
swapon
sysctl s/Free Memory Pages/Free Memory/ to avoid confusion, since we're 2012-04-11 14:18:18 +00:00
tunefs
umount
Makefile Import work done under project/nand (@235533) into head. 2012-05-17 10:11:18 +00:00
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.ia64
Makefile.inc
Makefile.mips
Makefile.pc98
Makefile.sparc64