netgraph only on i386/ia64 - why ?

Harti Brandt harti at freebsd.org
Tue Aug 17 09:56:40 PDT 2004


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


More information about the freebsd-net mailing list