[hipl-commit] [trunk] Rev 4393: Declare hip_esp structures before they are used.

  • From: Diego Biurrun <diego@xxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Wed, 21 Apr 2010 19:36:05 +0300

Committer: Diego Biurrun <diego@xxxxxxxxxx>
Date: 21/04/2010 at 19:36:05
Revision: 4393
Revision-id: diego@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Declare hip_esp structures before they are used.

Modified:
  M  lib/core/common_defines.h

=== modified file 'lib/core/common_defines.h'
--- lib/core/common_defines.h   2010-04-21 16:33:58 +0000
+++ lib/core/common_defines.h   2010-04-21 16:35:42 +0000
@@ -11,6 +11,18 @@
 
 #include <stdint.h>
 
+/*********** ESP structures *************/
+
+struct hip_esp {
+    uint32_t esp_spi;
+    uint32_t esp_seq;
+} __attribute__ ((packed));
+
+struct hip_esp_tail {
+    uint8_t esp_padlen;
+    uint8_t esp_next;
+} __attribute__ ((packed));
+
 /* maximum packet size of a packet to be sent on the wire */
 #define MAX_PACKET_SIZE         1500
 
@@ -62,17 +74,4 @@
 
 #define HIP_HIT_DEV_MTU         HIP_MTU >= MIN_HIP_MTU ? HIP_MTU : MIN_HIP_MTU
 
-
-/*********** ESP structures *************/
-
-struct hip_esp {
-    uint32_t esp_spi;
-    uint32_t esp_seq;
-} __attribute__ ((packed));
-
-struct hip_esp_tail {
-    uint8_t esp_padlen;
-    uint8_t esp_next;
-} __attribute__ ((packed));
-
 #endif /* HIP_LIB_CORE_COMMON_DEFINES_H */

Other related posts:

  • » [hipl-commit] [trunk] Rev 4393: Declare hip_esp structures before they are used. - Diego Biurrun