From d7a981624630e948cb8c65e1aded87a0cf9be4db Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Tue, 29 Dec 2015 05:58:58 -0800 Subject: [PATCH] Update pseudoheader_checksum signature --- include/tins/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tins/utils.h b/include/tins/utils.h index dbb84c9..ecdc51d 100644 --- a/include/tins/utils.h +++ b/include/tins/utils.h @@ -247,7 +247,7 @@ namespace Tins { * \param flag The flag to use in the protocol field of the pseudo header. * \return The pseudo header checksum. */ - uint32_t pseudoheader_checksum(IPv4Address source_ip, IPv4Address dest_ip, uint32_t len, uint32_t flag); + uint32_t pseudoheader_checksum(IPv4Address source_ip, IPv4Address dest_ip, uint16_t len, uint16_t flag); /** \brief Performs the pseudo header checksum used in TCP and UDP PDUs. * @@ -257,7 +257,7 @@ namespace Tins { * \param flag The flag to use in the protocol field of the pseudo header. * \return The pseudo header checksum. */ - uint32_t pseudoheader_checksum(IPv6Address source_ip, IPv6Address dest_ip, uint32_t len, uint32_t flag); + uint32_t pseudoheader_checksum(IPv6Address source_ip, IPv6Address dest_ip, uint16_t len, uint16_t flag); /** \brief Generic function to iterate through interface and collect * data.