diff options
author | 2019-02-08 12:00:25 +0100 | |
---|---|---|
committer | 2019-02-08 12:04:36 +0100 | |
commit | 1e1d08d94bb39e2de79d7182e5598fc5fa5e9fce (patch) | |
tree | 6bef6d8f845b4fb979901f5b58174a210020eeac /lib/src/base.h | |
parent | db1afad8749fce983636456c16c9df9c24d73af4 (diff) |
[HICN-43] Fixed packet lifetime and setting AH flag when a data packet carries a signature
Change-Id: I5e14716bc9bfcd8ffc3ab8cda8aa9ba0ca5c6d82
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'lib/src/base.h')
-rw-r--r-- | lib/src/base.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/src/base.h b/lib/src/base.h index 0fcf2a9c2..d8a79a9c2 100644 --- a/lib/src/base.h +++ b/lib/src/base.h @@ -30,9 +30,9 @@ typedef u32 hicn_faceid_t; typedef u8 hicn_pathlabel_t; typedef u32 hicn_lifetime_t; -#define HICN_MAX_LIFETIME HICN_MAX_LIFETIME_SCALED << HICN_MAX_LIFETIME_MULTIPLIER #define HICN_MAX_LIFETIME_SCALED 0xFFFF -#define HICN_MAX_LIFETIME_MULTIPLIER 0xF /* 4 bits */ +#define HICN_MAX_LIFETIME_MULTIPLIER 0x0F /* 4 bits */ +#define HICN_MAX_LIFETIME HICN_MAX_LIFETIME_SCALED << HICN_MAX_LIFETIME_MULTIPLIER /** * @brief hICN packet format type |