summaryrefslogtreecommitdiffstats
path: root/lib/src/protocol/ipv6.c
diff options
context:
space:
mode:
authorAlberto Compagno <acompagn+fdio@cisco.com>2019-02-07 13:12:19 +0100
committerAlberto Compagno <acompagn+fdio@cisco.com>2019-02-07 13:15:40 +0000
commitdb1afad8749fce983636456c16c9df9c24d73af4 (patch)
treed78492674a1fbc5b923941991542d8115e11493d /lib/src/protocol/ipv6.c
parent216e35ba535efa00af39b7624f363ca832836e3f (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/protocol/ipv6.c')
-rw-r--r--lib/src/protocol/ipv6.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/src/protocol/ipv6.c b/lib/src/protocol/ipv6.c
index 41b00ec92..1cdcc75c0 100644
--- a/lib/src/protocol/ipv6.c
+++ b/lib/src/protocol/ipv6.c
@@ -401,6 +401,13 @@ ipv6_get_key_id (hicn_type_t type, hicn_protocol_t * h,
return CHILD_OPS (get_key_id, type, h, key_id, key_id_size);
}
+int
+ipv6_get_signature (hicn_type_t type, hicn_protocol_t * h,
+ uint8_t ** signature)
+{
+ return CHILD_OPS (get_signature, type, h, signature);
+}
+
DECLARE_HICN_OPS (ipv6);
/*