Sender: marko@...1042... References: <4811E5AA.8060900@...1090...> <4818EF70.6060900@...41...> Date: 01 May 2008 02:53:21 +0300 In-Reply-To: <4818EF70.6060900@...41...> Message-ID: MIME-Version: 1.0 From: Marko Rauhamaa Subject: Re: [Openvpn-devel] [patch] OpenVPN 2.1_rc7, multihome and 64 bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit To: James Yonan Cc: openvpn-devel@lists.sourceforge.net James Yonan : > Interesting. I wonder if a better solution might be to bracket the > struct openvpn_pktinfo definition with > > #pragma pack(1) > ... > #pragma pack() Yes, although gcc is allergic to #pragma's. The gcc way of expressing it is: struct __attribute__ ((__packed__)) my_packed_struct { char c; int i; struct my_unpacked_struct s; }; (from "info gcc" -> "C Extensions" -> "Type Attributes"). Marko