From owner-freebsd-net@FreeBSD.ORG Wed Sep 3 12:58:21 2003 Return-Path: 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 00BA916A4BF for ; Wed, 3 Sep 2003 12:58:21 -0700 (PDT) Received: from ajax.cs.uga.edu (ajax.cs.uga.edu [128.192.251.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09D1343FDD for ; Wed, 3 Sep 2003 12:58:20 -0700 (PDT) (envelope-from yan@cs.uga.edu) Received: from atlas.cs.uga.edu (atlas [128.192.251.4]) by ajax.cs.uga.edu (8.9.3/8.9.3) with ESMTP id PAA05727; Wed, 3 Sep 2003 15:58:17 -0400 (EDT) Received: from localhost (yan@localhost) by atlas.cs.uga.edu (8.9.3/8.9.3) with ESMTP id PAA02331; Wed, 3 Sep 2003 15:58:25 -0400 (EDT) X-Authentication-Warning: atlas.cs.uga.edu: yan owned process doing -bs Date: Wed, 3 Sep 2003 15:58:25 -0400 (EDT) From: Haijin Yan To: freebsd-net@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: yan@cs.uga.edu Subject: ip_forward() crash X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Sep 2003 19:58:21 -0000 Hi, I am using freebsd 4.5 and in the ip_input.c at the place where IP decides to forward a mbuf not destined to itself, I added one of my function which included a call of ip_forward() to send out a my m_copyed mbuf to the sender. so basically there are two calls to ip_forward(), one is to relay mbuf from the sender and the other is forward back a copy of it. However, this behavior crashed my freebsd with trap 12 saying page fault in kernel. Does anyone have the same experience and know what's wrong with this? Any suggestion is highly appreciated. please cc to me because I am not on the list. Thanks, -Haijin Yan