Date: Tue, 17 Aug 2004 18:56:16 +0200 (CEST) From: Harti Brandt <harti@freebsd.org> To: John Polstra <jdp@polstra.com> Cc: "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net> Subject: Re: netgraph only on i386/ia64 - why ? Message-ID: <20040817185049.X872@beagle.kn.op.dlr.de> In-Reply-To: <XFMail.20040817094857.jdp@polstra.com> References: <XFMail.20040817094857.jdp@polstra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040817185049.X872>