Date: Sun, 26 Jul 2009 11:29:26 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern kern_vimage.c src/sys/net if.c src/sys/sys vimage.h Message-ID: <200907261130.n6QBUBBP073088@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
bz 2009-07-26 11:29:26 UTC FreeBSD src repository Modified files: sys/kern kern_vimage.c sys/net if.c sys/sys vimage.h Log: SVN rev 195891 on 2009-07-26 11:29:26Z by bz Make the in-kernel logic for the SIOCSIFVNET, SIOCSIFRVNET ioctls (ifconfig ifN (-)vnet <jname|jid>) work correctly. Move vi_if_move to if.c and split it up into two functions(*), one for each ioctl. In the reclaim case, correctly set the vnet before calling if_vmove. Instead of silently allowing a move of an interface from the current vnet to the current vnet, return an error. (*) There is some duplicate interface name checking before actually moving the interface between network stacks without locking and thus race prone. Ideally if_vmove will correctly and automagically handle these in the future. Suggested by: rwatson (*) Approved by: re (kib) Revision Changes Path 1.18 +0 -55 src/sys/kern/kern_vimage.c 1.358 +90 -2 src/sys/net/if.c 1.44 +0 -1 src/sys/sys/vimage.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907261130.n6QBUBBP073088>