From db1afad8749fce983636456c16c9df9c24d73af4 Mon Sep 17 00:00:00 2001 From: Alberto Compagno Date: Thu, 7 Feb 2019 13:12:19 +0100 Subject: [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 --- lib/src/protocol/icmp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/src/protocol/icmp.c') diff --git a/lib/src/protocol/icmp.c b/lib/src/protocol/icmp.c index 44b646fb2..45a28959c 100644 --- a/lib/src/protocol/icmp.c +++ b/lib/src/protocol/icmp.c @@ -39,7 +39,9 @@ DECLARE_set_lifetime (icmp, UNEXPECTED) DECLARE_get_length (icmp, UNEXPECTED) DECLARE_get_payload_length (icmp, UNEXPECTED) DECLARE_set_payload_length (icmp, UNEXPECTED) - int icmp_init_packet_header (hicn_type_t type, hicn_protocol_t * h) +DECLARE_get_signature (icmp, UNEXPECTED) + +int icmp_init_packet_header (hicn_type_t type, hicn_protocol_t * h) { h->icmp = (_icmp_header_t) { -- cgit 1.2.3-korg