From owner-cvs-src-old@FreeBSD.ORG Sun Jul 26 11:30:11 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4F9651065678 for ; Sun, 26 Jul 2009 11:30:11 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 3BA2A8FC1F for ; Sun, 26 Jul 2009 11:30:11 +0000 (UTC) (envelope-from bz@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n6QBUBuN073089 for ; Sun, 26 Jul 2009 11:30:11 GMT (envelope-from bz@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n6QBUBBP073088 for cvs-src-old@freebsd.org; Sun, 26 Jul 2009 11:30:11 GMT (envelope-from bz@repoman.freebsd.org) Message-Id: <200907261130.n6QBUBBP073088@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to bz@repoman.freebsd.org using -f From: "Bjoern A. Zeeb" Date: Sun, 26 Jul 2009 11:29:26 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/kern kern_vimage.c src/sys/net if.c src/sys/sys vimage.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jul 2009 11:30:11 -0000 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 ) 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