From owner-cvs-all Wed Mar 28 7:52:23 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 5B9C537B726; Wed, 28 Mar 2001 07:52:19 -0800 (PST) (envelope-from yar@FreeBSD.org) Received: (from yar@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f2SFqGV17218; Wed, 28 Mar 2001 07:52:16 -0800 (PST) (envelope-from yar) Message-Id: <200103281552.f2SFqGV17218@freefall.freebsd.org> From: Yar Tikhiy Date: Wed, 28 Mar 2001 07:52:16 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/net if_vlan.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG yar 2001/03/28 07:52:16 PST Modified files: sys/net if_vlan.c Log: Fix a number of minor bugs in the VLAN code: * Initialize the "struct sockaddr_dl sdl" correctly in vlan_setmulti(). PR: kern/22181 * The driver used to call malloc(..., M_NOWAIT), but to not check the return value. Change malloc(..., M_NOWAIT) to malloc(..., M_WAITOK) because the corresponding part of code is called from the upper half of the kernel only. PR: kern/22181 * Make sure a parent interface is up and running before invoking its if_start() routine in order to avoid system panic. PR: kern/22179 kern/24741 i386/25478 * Do not copy all the flags from a parent mindlessly. PR: kern/22179 * Do not call if_down() on a parent interface if it's already down. Call if_down() at splimp because if_down() needs that. PR: kern/22179 Reviewed by: wollman Revision Changes Path 1.26 +26 -7 src/sys/net/if_vlan.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message