From owner-freebsd-questions@FreeBSD.ORG Thu May 8 12:50:16 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BADB737B40D for ; Thu, 8 May 2003 12:50:05 -0700 (PDT) Received: from msgbas2x.cos.agilent.com (msgbas1tx.cos.agilent.com [192.25.240.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE99743FB1 for ; Thu, 8 May 2003 12:50:04 -0700 (PDT) (envelope-from anu_subramanian@agilent.com) Received: from relcos1.cos.agilent.com (relcos1.cos.agilent.com [130.29.152.239]) by msgbas2x.cos.agilent.com (Postfix) with ESMTP id 89C04F6D for ; Thu, 8 May 2003 13:50:04 -0600 (MDT) Received: from axcsbh3.cos.agilent.com (axcsbh3.cos.agilent.com [130.29.152.190]) by relcos1.cos.agilent.com (Postfix) with SMTP id 604DE5D4 for ; Thu, 8 May 2003 13:50:04 -0600 (MDT) Received: from 130.29.152.190 by axcsbh3.cos.agilent.com (InterScan E-Mail VirusWall NT); Thu, 08 May 2003 13:50:03 -0600 Received: by axcsbh3.cos.agilent.com with Internet Mail Service (5.5.2653.19) id <2ZGFGYR7>; Thu, 8 May 2003 13:50:03 -0600 Message-ID: <0D9185CE635BD511ACA50090277A6FCF050374CD@axcs18.cos.agilent.com> From: anu_subramanian@agilent.com To: freebsd-questions@FreeBSD.org Date: Thu, 8 May 2003 13:50:02 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Subject: IP header length in RAW IP packets X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 May 2003 19:50:17 -0000 Hello, I'm a new user of this mailing list. I'm using FreeBSD 4.4. I see that in ip_input, the IP header length is subtracted from the length field in the IP header. For raw ip, rip_input does not seem to add that back when it passes the IP datagram to the user, i.e., it passes the datagram up with ip->ip_len = total length - header length. My question is: Why, if the IP header is passed up, does the length not reflect that? Please let me know if I should've posted this elsewhere. Many Thanks, Anu. Anu Subramanian Software Engineer Agilent Technologies. Tel: 603 559 5742 Fax: 603 433 6891