From owner-freebsd-net@FreeBSD.ORG Tue Jun 7 19:46:13 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org 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 9AE0216A41F for ; Tue, 7 Jun 2005 19:46:13 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E35743D55 for ; Tue, 7 Jun 2005 19:46:13 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from mac.com (smtpin07-en2 [10.13.10.152]) by smtpout.mac.com (Xserve/8.12.11/smtpout02/MantshX 4.0) with ESMTP id j57JkAIU023943; Tue, 7 Jun 2005 12:46:10 -0700 (PDT) Received: from [192.168.1.6] (pool-68-161-53-96.ny325.east.verizon.net [68.161.53.96]) (authenticated bits=0) by mac.com (Xserve/smtpin07/MantshX 4.0) with ESMTP id j57Jk5tO026126; Tue, 7 Jun 2005 12:46:07 -0700 (PDT) In-Reply-To: <42A5D5DE.2010407@elischer.org> References: <42A5BCEB.8020109@kuhtz.com> <42A5D5DE.2010407@elischer.org> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <70FFA13A-E2C1-4CCE-B430-F948EECC1B96@mac.com> Content-Transfer-Encoding: 7bit From: Charles Swiger Date: Tue, 7 Jun 2005 15:46:03 -0400 To: Julian Elischer X-Mailer: Apple Mail (2.730) Cc: Christian Kuhtz , freebsd-net@freebsd.org Subject: Re: divert sock api q X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2005 19:46:13 -0000 On Jun 7, 2005, at 1:14 PM, Julian Elischer wrote: >> I apologize for being so exceptionally dense, this is driving me >> completely up the walls.. > > if you are receiving the entire IP packet in user space (first byte > is 0x42 or 0x45 usually) then you need to update teh packet length > field of the IP packet, as well as changing the number of bytes > written back. I agree with your suggestion, but how can you have an ip_vhl of 0x42? Doesn't a valid IP packet need to have a header length of at least 5 (5 << 2 == 20 bytes)? -- -Chuck