From owner-freebsd-net Sun Aug 25 13: 7:11 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 C888337B400 for ; Sun, 25 Aug 2002 13:07:09 -0700 (PDT) Received: from hotmail.com (f58.law9.hotmail.com [64.4.9.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5BFA43E72 for ; Sun, 25 Aug 2002 13:07:08 -0700 (PDT) (envelope-from soheil_h_y@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sun, 25 Aug 2002 13:07:05 -0700 Received: from 62.60.130.15 by lw9fd.law9.hotmail.msn.com with HTTP; Sun, 25 Aug 2002 20:07:05 GMT X-Originating-IP: [62.60.130.15] From: "soheil h" To: freebsd-net@FreeBSD.ORG Subject: creating packets but cannot send Date: Mon, 26 Aug 2002 00:37:05 +0430 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 25 Aug 2002 20:07:05.0383 (UTC) FILETIME=[FBC5EB70:01C24C72] 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 Hi list in ip_input.c::ip_input() i make mbuf * m1; MGETHDR(m1, M_DONTWAIT, MT_HEADER); if(m1 != NULL){ soheilFillInIp(m1, m); m->m_data += max_linkhdr; m->m_len = hdrlen; ip_forward(m1, 0); } at line 1615 of ip_forward() function it takes page fault error in kernel it says the page is not present if (m->m_flags & (M_BCAST|M_MCAST) || in_canforward(pkt_dst) == 0) { the soheilFillInIp creates an ipPacket from incoming ip packet as and it passes with no error on: .... ip1 = mtod (m, struct ip *); ip2 = mtod (m1, struct ip *); ip2->ip_vhl = IP_VHL_BORING; ip2->ip_dst = ip1->ip_src; // and vice versa or ip2->ip_sum = in_cksum_hdr(m1, sizeof(struct tcpiphdr)); .... when i do something to pass that line of ip_forward in ip_output when it calls the in_delayed_cksum it takes the same error how can i solve this i think something is in the m1 header or data that i didn't set it or ... help me SOS _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message