[hipl-commit] [trunk] Rev 4399: Pack the hip_hadb_state structure.

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Thu, 22 Apr 2010 00:04:15 +0200

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: Wed Apr 21 23:50:48 2010 +0200
Revision: 4399
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Pack the hip_hadb_state structure.
  This fixes the segfault occuring on the 32-bit morpheus. The compiler
  (gcc-4.3.3) does different alignments for this structure in the compile 
  units of hadb.c and output.c

Modified:
  M  lib/core/state.h

=== modified file 'lib/core/state.h'
--- lib/core/state.h    2010-04-21 16:18:58 +0000
+++ lib/core/state.h    2010-04-21 21:50:48 +0000
@@ -514,7 +514,7 @@
 
     // Has struct hip_peer_addr_list_item s
     HIP_HASHTABLE *peer_addresses_old;
-};
+} __attribute__((packed));
 
 /** A data structure defining host association information that is sent
  *  to the userspace */

Other related posts: