From owner-freebsd-net@FreeBSD.ORG Thu Mar 17 22:13:59 2005 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 D83D216A4CE for ; Thu, 17 Mar 2005 22:13:59 +0000 (GMT) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F2D243D2D for ; Thu, 17 Mar 2005 22:13:59 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 22743 invoked from network); 17 Mar 2005 22:13:59 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail22.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 17 Mar 2005 22:13:59 -0000 Received: from hydrogen.funkthat.com (pcryty@localhost.funkthat.com [127.0.0.1])j2HMDxGH037841 for ; Thu, 17 Mar 2005 14:13:59 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id j2HMDxvu037840 for freebsd-net@FreeBSD.org; Thu, 17 Mar 2005 14:13:59 -0800 (PST) Date: Thu, 17 Mar 2005 14:13:59 -0800 From: John-Mark Gurney To: freebsd-net@FreeBSD.org Message-ID: <20050317221359.GN89312@funkthat.com> Mail-Followup-To: freebsd-net@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Subject: changes to make ethernet packets able to be unaligned... X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2005 22:14:00 -0000 Ok, since you wanted to look at it more... I have a working copy of making packets alignment safe for ip in p4 at as change 73150: http://perforce.freebsd.org/changeView.cgi?CH=73150&ignore=GO%21 This currently is only for arm and I plan to now remove the code from epe.c that copies the packet around since it's really stupid, and considering how easily NetBSD did this (it took about about 5 minutes to get this code running), I'm ashamed that I didn't do this a while back when I was working on if_re... Comments please? I'll bring up adding: #define __NO_STRICT_ALIGNMENT to i386 and amd64's include/_types.h on -arch shortly. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."