From owner-freebsd-net Fri Dec 13 19:29:57 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7480837B401 for ; Fri, 13 Dec 2002 19:29:56 -0800 (PST) Received: from pimout1-ext.prodigy.net (pimout1-ext.prodigy.net [207.115.63.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB5B943EC2 for ; Fri, 13 Dec 2002 19:29:50 -0800 (PST) (envelope-from kbyanc@posi.net) Received: from gateway.posi.net (adsl-63-201-91-63.dsl.snfc21.pacbell.net [63.201.91.63]) by pimout1-ext.prodigy.net (8.12.3 da nor stuldap/8.12.3) with ESMTP id gBE3TnMv367508 for ; Fri, 13 Dec 2002 22:29:49 -0500 Received: from localhost (localhost [127.0.0.1]) by gateway.posi.net (8.12.6/8.12.5) with ESMTP id gBE3TmYl033717 for ; Fri, 13 Dec 2002 19:29:48 -0800 (PST) (envelope-from kbyanc@posi.net) Date: Fri, 13 Dec 2002 19:29:48 -0800 (PST) From: Kelly Yancey To: net@FreeBSD.org Subject: Raw sockets and splnet() Message-ID: <20021213191946.Y33706-100000@gateway.posi.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Is there any particular reason that the raw socket implementation in net/raw_usrreq.c does not require splnet() protection? It seems as though adding splnet()/splx() calls to the various raw_* routines would greatly reduce the size of net/rtsock.c, in which many of the routines simply wrap their raw_ counterparts with splnet()/splx(). Currently, it appears that routing sockets are the only consumer of the raw socket interface at the moment, but if another consumer were to exist then they would have to do the same splnet()/splx() hackery I imagine. Wouldn't it make sense to just put the logic into net/raw_usrreq.c and be done with it? Any insight would be appreciated. Thanks, Kelly -- Kelly Yancey -- kbyanc@{posi.net,FreeBSD.org} Visit the BSD driver database: http://www.posi.net/freebsd/drivers/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message