1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Update pseudoheader_checksum signature

This commit is contained in:
Matias Fontanini
2015-12-29 05:58:58 -08:00
parent 67d31fd62c
commit d7a9816246

View File

@@ -247,7 +247,7 @@ namespace Tins {
* \param flag The flag to use in the protocol field of the pseudo header. * \param flag The flag to use in the protocol field of the pseudo header.
* \return The pseudo header checksum. * \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. /** \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. * \param flag The flag to use in the protocol field of the pseudo header.
* \return The pseudo header checksum. * \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 /** \brief Generic function to iterate through interface and collect
* data. * data.