From owner-freebsd-net Thu Dec 20 13:56: 9 2001 Delivered-To: freebsd-net@freebsd.org Received: from elvis.mu.org (elvis.mu.org [216.33.66.196]) by hub.freebsd.org (Postfix) with ESMTP id D849F37B405 for ; Thu, 20 Dec 2001 13:56:05 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 6529981E0B; Thu, 20 Dec 2001 15:56:00 -0600 (CST) Date: Thu, 20 Dec 2001 15:56:00 -0600 From: Alfred Perlstein To: Henry Su Cc: freebsd-net@FreeBSD.ORG Subject: Re: socket call in the kernel Message-ID: <20011220155600.J48837@elvis.mu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from henrysu@nttmcl.com on Thu, Dec 20, 2001 at 12:58:22PM -0800 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 * Henry Su [011220 14:56] wrote: > I am trying to modify ip_fw.c in the /usr/src/sys/netinet, I tried to add a > socket call in the code, it can be compiled, but when it runs into the code, > it just crashed. It gave me the "Fatal trap error 12", Memory address is > wrong. > > Can any one tell me if socket call can be used in kernel level? If not, how > can I accomplish socket communication in the kernel level? This is nowhere near enough information for anyone to be able to help you. Please be more specific, show us some example code. thanks, -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' http://www.morons.org/rants/gpl-harmful.php3 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message