From owner-freebsd-net Tue May 2 8:31:29 2000 Delivered-To: freebsd-net@freebsd.org Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by hub.freebsd.org (Postfix) with ESMTP id DC3AC37BC0F for ; Tue, 2 May 2000 08:31:19 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.9.3/8.9.3) id LAA73669; Tue, 2 May 2000 11:31:02 -0400 (EDT) (envelope-from wollman) Date: Tue, 2 May 2000 11:31:02 -0400 (EDT) From: Garrett Wollman Message-Id: <200005021531.LAA73669@khavrinen.lcs.mit.edu> To: Archie Cobbs Cc: freebsd-net@FreeBSD.ORG Subject: sizeof(struct ether_header) In-Reply-To: <200005012111.OAA94013@bubba.whistle.com> References: <200005012111.OAA94013@bubba.whistle.com> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org < 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