1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-26 12:01:34 +01:00

Merge pull request #11 from kylemcdonald/master

changed ICMP::check to ICMP::checksum
This commit is contained in:
Matias Fontanini
2014-05-03 18:52:29 -03:00
2 changed files with 3 additions and 3 deletions

View File

@@ -258,7 +258,7 @@ namespace Tins {
*
* \return Returns the checksum as an unit16_t.
*/
uint16_t check() const { return Endian::be_to_host(_icmp.check); }
uint16_t checksum() const { return Endian::be_to_host(_icmp.check); }
/**
* \brief Getter for the echo id.
@@ -377,7 +377,7 @@ namespace Tins {
} un;
} TINS_END_PACK;
void check(uint16_t new_check);
void checksum(uint16_t new_check);
/** \brief Serialices this ICMP PDU.
* \param buffer The buffer in which the PDU will be serialized.

View File

@@ -86,7 +86,7 @@ void ICMP::type(Flags new_type) {
_icmp.type = new_type;
}
void ICMP::check(uint16_t new_check) {
void ICMP::checksum(uint16_t new_check) {
_icmp.check = Endian::host_to_be(new_check);
}