diff options
author | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-02-07 13:12:19 +0100 |
---|---|---|
committer | Alberto Compagno <acompagn+fdio@cisco.com> | 2019-02-07 13:15:40 +0000 |
commit | db1afad8749fce983636456c16c9df9c24d73af4 (patch) | |
tree | d78492674a1fbc5b923941991542d8115e11493d /lib/src/compat.h | |
parent | 216e35ba535efa00af39b7624f363ca832836e3f (diff) |
[HICN-39] Added api that return a pointer to the signature hold in a packet
[HICN-40] Fixed signature calculation by allocating a contiguous portion of
memory that holds the entire hICN header (IP+TCP+AH)
Change-Id: I9d40bab0e3ecb82949b8b3a00e2cc1214457e4e3
Signed-off-by: Alberto Compagno <acompagn+fdio@cisco.com>
Diffstat (limited to 'lib/src/compat.h')
-rw-r--r-- | lib/src/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/src/compat.h b/lib/src/compat.h index 1a1743de2..52dd41f1e 100644 --- a/lib/src/compat.h +++ b/lib/src/compat.h @@ -387,9 +387,9 @@ int hicn_packet_set_src_port (hicn_header_t * packet, u16 src_port); int hicn_packet_get_src_port (const hicn_header_t * packet, u16 * src_port); int hicn_packet_set_dst_port (hicn_header_t * packet, u16 dst_port); int hicn_packet_get_dst_port (const hicn_header_t * packet, u16 * dst_port); +int hicn_packet_get_signature(hicn_format_t format, hicn_header_t * packet, uint8_t ** sign_buf); /* Interest */ - int hicn_interest_get_name (hicn_format_t format, const hicn_header_t * interest, hicn_name_t * name); |