summaryrefslogtreecommitdiffstats
path: root/hicn-light/src
diff options
context:
space:
mode:
authormichele papalini <micpapal@cisco.com>2019-02-08 11:43:58 +0100
committermichele papalini <micpapal@cisco.com>2019-02-08 11:43:58 +0100
commitc93d0904254871ec3c8563559bc157ad5a11f3e0 (patch)
tree4481812588772e5f909a8f8f8c2c7867c072ea3d /hicn-light/src
parent3f0e792ab647ad79cab3e2282ab5d4c33a4c5de1 (diff)
[HICN-42] reuse HICN_MAX_LIFETIME in messageHandler
Change-Id: Ie47a1ce333f833de82205d6d686f5cfd31b4d662 Signed-off-by: michele papalini <micpapal@cisco.com>
Diffstat (limited to 'hicn-light/src')
-rw-r--r--hicn-light/src/core/messageHandler.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/hicn-light/src/core/messageHandler.h b/hicn-light/src/core/messageHandler.h
index cf8ab3672..f469ac5b0 100644
--- a/hicn-light/src/core/messageHandler.h
+++ b/hicn-light/src/core/messageHandler.h
@@ -41,8 +41,6 @@
#define PATH_LABEL_MASK 0x8000 // 1000 0000 0000 0000
#define NOT_PATH_LABEL_MASK 0x7fff // 0111 0000 0000 0000
#define UINT16_T_MASK 0x0000ffff // 1111 1111 1111 1111
-#define NEVER_EXPIRE \
- 16777216 // 2^16 (max urgent pointer) * 2^8 (max reserved + NS bits)
/*** HICN ALLOWED PORTS ***/
#define CONTROL_PORT 9695
@@ -435,7 +433,7 @@ static inline bool messageHandler_HasContentExpiryTime(const uint8_t *message) {
hicn_data_get_expiry_time((hicn_header_t *)message, &expirationTime);
if (res < 0) return false;
- if (expirationTime == NEVER_EXPIRE) return false;
+ if (expirationTime == HICN_MAX_LIFETIME) return false;
return true;
}