From owner-freebsd-hackers Sat Oct 30 3:54:57 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.scc.nl (node1374.a2000.nl [62.108.19.116]) by hub.freebsd.org (Postfix) with ESMTP id 11C0514CBA for ; Sat, 30 Oct 1999 03:54:47 -0700 (PDT) (envelope-from freebsd-hackers@scc.nl) Received: (from daemon@localhost) by mail.scc.nl (8.9.3/8.9.3) id MAA92328 for hackers@FreeBSD.org; Sat, 30 Oct 1999 12:36:50 +0200 (CEST) (envelope-from freebsd-hackers@scc.nl) Received: from GATEWAY by dwarf.hq.scc.nl with netnews for hackers@FreeBSD.org (hackers@FreeBSD.org) To: hackers@FreeBSD.org Date: Sat, 30 Oct 1999 12:36:43 +0200 From: Marcel Moolenaar Message-ID: <381ACA3B.F8D71A57@scc.nl> Organization: SCC vof Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit References: <199910292014.WAA31440@yedi.iaf.nl> Subject: Re: bootpd on Alpha / alignment problems Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Wilko Bulte wrote: > > On Alpha the bootpd does not work, it assert-fails on the > size of the struct bootp being != to BP_MINPKTSZ. > > My best bet is that the Alpha alignment inside the struct results > in a bigger bootp struct. I am, however, not sure on what the right > way is to fix this. Make sure int32 is not defined in terms of long. If it is, then bp_xid is aligned on a 8 byte boundary adding 4 bytes to the size of the struct. Since long if 64-bits on the Alpha, the total increase will be 8. Any alignment at the end of the structure shouldn't cause you troubles. -- Marcel Moolenaar mailto:marcel@scc.nl SCC Internetworking & Databases http://www.scc.nl/ The FreeBSD project mailto:marcel@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message