From owner-freebsd-net Thu Dec 20 12:56:18 2001 Delivered-To: freebsd-net@freebsd.org Received: from ns1.nttmcl.com (ns1.nttmcl.com [216.69.68.197]) by hub.freebsd.org (Postfix) with ESMTP id A5D1237B41B for ; Thu, 20 Dec 2001 12:56:05 -0800 (PST) Received: from hsu (dhcp252.nttmcl.com [216.69.69.252]) by ns1.nttmcl.com (Postfix) with SMTP id 472AEDE541 for ; Thu, 20 Dec 2001 12:56:05 -0800 (PST) Reply-To: From: "Henry Su" To: Subject: socket call in the kernel Date: Thu, 20 Dec 2001 12:58:22 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 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? Thanks. ------------------------------------------------ Henry Su NTT Multimedia Communications Laboratories, Inc. 250 Cambridge Avenue Suite 300 Palo Alto, CA 94306, USA (PST:UTC -8H) Tel: +1 650 833 3652 Fax: +1 650 326 1878 http://www.nttmcl.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message