From owner-freebsd-net@FreeBSD.ORG Tue Aug 17 16:56:40 2004 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 F276D16A4CE; Tue, 17 Aug 2004 16:56:39 +0000 (GMT) Received: from n33.kp.t-systems-sfr.com (n33.kp.t-systems-sfr.com [129.247.16.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7225943D3F; Tue, 17 Aug 2004 16:56:38 +0000 (GMT) (envelope-from harti@freebsd.org) Received: from n81.sp.op.dlr.de (n81g.sp.op.dlr.de [129.247.163.1]) i7HGuIX546360; Tue, 17 Aug 2004 18:56:18 +0200 Received: from zeus.nt.op.dlr.de (zeus.nt.op.dlr.de [129.247.173.3]) i7HGuII57506; Tue, 17 Aug 2004 18:56:18 +0200 Received: from beagle.kn.op.dlr.de (opkndnwsbsd178 [129.247.173.178]) by zeus.nt.op.dlr.de (8.11.7+Sun/8.9.1) with ESMTP id i7HGuGe06186; Tue, 17 Aug 2004 18:56:18 +0200 (MET DST) Date: Tue, 17 Aug 2004 18:56:16 +0200 (CEST) From: Harti Brandt X-X-Sender: brandt@beagle.kn.op.dlr.de To: John Polstra In-Reply-To: Message-ID: <20040817185049.X872@beagle.kn.op.dlr.de> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-net@freebsd.org cc: "Bjoern A. Zeeb" Subject: Re: netgraph only on i386/ia64 - why ? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Harti Brandt List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2004 16:56:40 -0000 On Tue, 17 Aug 2004, John Polstra wrote: JP>On 17-Aug-2004 Harti Brandt wrote: JP>> On Mon, 16 Aug 2004, Bjoern A. Zeeb wrote: JP>> JP>> BAZ>Hi, JP>> BAZ> JP>> BAZ>It seems netgraph is only build on ia64 and i386. JP>> BAZ>Can someone please explain why ? JP>> JP>> Until around april I used all the ATM related Ng stuff regularily (this JP>> include ng_socket, all the stuff under netgraph/atm). I think this should JP>> just be enabled. Unless build problems have been introduced since then, JP>> it should just be enabled. JP> JP>There is one problem with netgraph on 64-bit platforms. The ng_msghdr JP>struct is 52 bytes / 4-byte aligned (see ng_message.h). That means JP>the message payload is not well-aligned for 64-bit platforms. It JP>would be nice to fix that (and bump NG_VERSION, of course). Nobody JP>ever guaranteed that the message payload would be aligned, but it JP>makes things a lot more convenient. Oh. That would be good to fix. I assumed that the payload is correctly aligned and never checked that. This seems magically to work (even in the kernel). I suppose that cannot be fixed by check that a universe can be built? harti