From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.speakeasy.net (mail16.speakeasy.net [216.254.0.216]) by dsl2.external.hp.com (Postfix) with ESMTP id B1CCC484D for ; Tue, 16 Jul 2002 21:17:01 -0600 (MDT) Date: Tue, 16 Jul 2002 20:19:57 -0700 From: Randolph Chung To: Matthew Wilcox Cc: John David Anglin , parisc-linux@parisc-linux.org, gcc@gcc.gnu.org Subject: Re: [parisc-linux] gcc-3.[02] alignment problem Message-ID: <20020717031957.GE641@tausq.org> Reply-To: Randolph Chung References: <200207161701.g6GH1D03023385@hiauly1.hia.nrc.ca> <20020716172255.GM8724@tausq.org> <20020716182408.W27706@parcelfarce.linux.theplanet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20020716182408.W27706@parcelfarce.linux.theplanet.co.uk> Sender: parisc-linux-admin@lists.parisc-linux.org Errors-To: parisc-linux-admin@lists.parisc-linux.org List-Help: List-Post: List-Subscribe: , List-Id: parisc-linux developers list List-Unsubscribe: , List-Archive: > > why is the offset of tcpdiag_cookie[0] 44 and not 40? > > 0 tcpdiag_sport > 2 tcpdiag_dport > 4 tcpdiag_src > 20 tcpdiag_dst > 36 tcpdiag_if > 40 tcpdiag_cookie > > hmm.. worth checking that dport is at offset 2, not offset 4? oic, it's embedded inside another structure: struct tcpdiagmsg { __u8 tcpdiag_family; __u8 tcpdiag_state; __u8 tcpdiag_timer; __u8 tcpdiag_retrans; struct tcpdiag_sockid id; __u32 tcpdiag_expires; __u32 tcpdiag_rqueue; __u32 tcpdiag_wqueue; __u32 tcpdiag_uid; __u32 tcpdiag_inode; }; that's why it's 44... randolph