Date: Sat, 30 Oct 1999 12:36:43 +0200 From: Marcel Moolenaar <marcel@scc.nl> To: hackers@FreeBSD.org Subject: Re: bootpd on Alpha / alignment problems Message-ID: <381ACA3B.F8D71A57@scc.nl> References: <199910292014.WAA31440@yedi.iaf.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?381ACA3B.F8D71A57>