1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-27 04:11:35 +01:00

Added ICMP class. It was tested and it's working.

This commit is contained in:
Matias
2011-08-14 11:17:38 -03:00
parent a49a88d636
commit 1215ae135c
7 changed files with 295 additions and 3 deletions

View File

@@ -64,5 +64,6 @@ void Tins::UDP::write_serialization(uint8_t *buffer, uint32_t total_sz, const PD
_udp.check = Utils::net_to_host_s(~checksum);
}
std::memcpy(buffer, &_udp, sizeof(udphdr));
_udp.check = 0;
}