From c93d0904254871ec3c8563559bc157ad5a11f3e0 Mon Sep 17 00:00:00 2001 From: michele papalini Date: Fri, 8 Feb 2019 11:43:58 +0100 Subject: [HICN-42] reuse HICN_MAX_LIFETIME in messageHandler Change-Id: Ie47a1ce333f833de82205d6d686f5cfd31b4d662 Signed-off-by: michele papalini --- hicn-light/src/core/messageHandler.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'hicn-light/src') 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; } -- cgit 1.2.3-korg