1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 20:44:26 +01:00

Remove parent parameter from write_serialization

This is no longer needed as each PDU knows its parent PDU already
This commit is contained in:
Matias Fontanini
2017-04-29 09:53:33 -07:00
parent 1b4d22314d
commit 15a353c123
60 changed files with 79 additions and 97 deletions

View File

@@ -216,7 +216,7 @@ void ICMP::use_length_field(bool value) {
header_.un.rfc4884.length = value ? 1 : 0;
}
void ICMP::write_serialization(uint8_t* buffer, uint32_t total_sz, const PDU *) {
void ICMP::write_serialization(uint8_t* buffer, uint32_t total_sz) {
OutputMemoryStream stream(buffer, total_sz);
// If extensions are allowed and we have to set the length field