From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3641 invoked by alias); 17 Jul 2002 03:17:01 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 3634 invoked from network); 17 Jul 2002 03:17:00 -0000 Received: from unknown (HELO mail.speakeasy.net) (216.254.0.216) by sources.redhat.com with SMTP; 17 Jul 2002 03:17:00 -0000 Received: (qmail 9772 invoked from network); 17 Jul 2002 03:17:00 -0000 Received: from unknown (HELO pippin.tausq.org) ([64.81.244.94]) (envelope-sender ) by mail16.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 17 Jul 2002 03:17:00 -0000 Received: by pippin.tausq.org (Postfix, from userid 1000) id 9AD7FCE04E; Tue, 16 Jul 2002 20:19:57 -0700 (PDT) Date: Wed, 17 Jul 2002 05:26:00 -0000 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 Content-Disposition: inline In-Reply-To: <20020716182408.W27706@parcelfarce.linux.theplanet.co.uk> User-Agent: Mutt/1.4i X-PGP: for PGP key, see http://www.tausq.org/pgp.txt X-GPG: for GPG key, see http://www.tausq.org/gpg.txt X-SW-Source: 2002-07/txt/msg00740.txt.bz2 > > 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