[hipl-dev] [Branch ~hipl-core/hipl/trunk] Rev 5481: Move HIP_LEN_PAD macro to the only place it is used.

  • From: noreply@xxxxxxxxxxxxx
  • To: HIPL core team <hipl-dev@xxxxxxxxxxxxx>
  • Date: Wed, 12 Jan 2011 12:48:35 -0000

------------------------------------------------------------
revno: 5481
committer: Diego Biurrun <diego@xxxxxxxxxx>
branch nick: trunk
timestamp: Mon 2011-01-10 13:07:32 +0100
message:
  Move HIP_LEN_PAD macro to the only place it is used.
modified:
  lib/core/builder.c
  lib/core/protodefs.h


--
lp:hipl
https://code.launchpad.net/~hipl-core/hipl/trunk

Your team HIPL core team is subscribed to branch lp:hipl.
To unsubscribe from this branch go to 
https://code.launchpad.net/~hipl-core/hipl/trunk/+edit-subscription
=== modified file 'lib/core/builder.c'
--- lib/core/builder.c  2011-01-12 11:58:50 +0000
+++ lib/core/builder.c  2011-01-10 12:07:32 +0000
@@ -338,6 +338,10 @@
     msg->checksum = checksum;     /* one byte, no ntohs() */
 }
 
+/* Returns length of TLV option (contents) with padding. */
+#define HIP_LEN_PAD(len) \
+    ((((len) & 0x07) == 0) ? (len) : ((((len) >> 3) << 3) + 8))
+
 /**
  * get the total size of a message parameter
  *

=== modified file 'lib/core/protodefs.h'
--- lib/core/protodefs.h        2011-01-11 13:59:46 +0000
+++ lib/core/protodefs.h        2011-01-10 12:07:32 +0000
@@ -554,10 +554,6 @@
       HIP_REG_CANCEL_REQUIRED, HIP_REG_TRANSIENT_CONDITIONS }
 
 
-/* Returns length of TLV option (contents) with padding. */
-#define HIP_LEN_PAD(len) \
-    ((((len) & 0x07) == 0) ? (len) : ((((len) >> 3) << 3) + 8))
-
 #define HIP_UDP_ZERO_BYTES_LEN 4 /* in bytes */
 
 #define HIP_MAX_RSA_KEY_LEN 4096

Other related posts:

  • » [hipl-dev] [Branch ~hipl-core/hipl/trunk] Rev 5481: Move HIP_LEN_PAD macro to the only place it is used. - noreply