Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 May 2000 11:31:02 -0400 (EDT)
From:      Garrett Wollman <wollman@khavrinen.lcs.mit.edu>
To:        Archie Cobbs <archie@whistle.com>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   sizeof(struct ether_header)
Message-ID:  <200005021531.LAA73669@khavrinen.lcs.mit.edu>
In-Reply-To: <200005012111.OAA94013@bubba.whistle.com>
References:  <200005012111.OAA94013@bubba.whistle.com>

next in thread | previous in thread | raw e-mail | index | archive | help
<<On Mon, 1 May 2000 14:11:35 -0700 (PDT), Archie Cobbs <archie@whistle.com> said:

> Isn't this bogus, as a structure may require longword padding on certain
> architecures, so that sizeof(struct ether_header) would equal 16?

The structure contains no object larger than a short, so it should
never require such padding.  If any architecture ever does, far more
than this will break.

-GAWollman

--
Garrett A. Wollman   | O Siem / We are all family / O Siem / We're all the same
wollman@lcs.mit.edu  | O Siem / The fires of freedom 
Opinions not those of| Dance in the burning flame
MIT, LCS, CRS, or NSA|                     - Susan Aglukark and Chad Irschick


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005021531.LAA73669>