mirror of
https://github.com/mfontanini/libtins
synced 2026-01-25 19:51:34 +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:
@@ -94,7 +94,7 @@ uint32_t IPSecAH::header_size() const {
|
||||
return static_cast<uint32_t>(sizeof(header_) + icv_.size());
|
||||
}
|
||||
|
||||
void IPSecAH::write_serialization(uint8_t* buffer, uint32_t total_sz, const PDU *) {
|
||||
void IPSecAH::write_serialization(uint8_t* buffer, uint32_t total_sz) {
|
||||
if (inner_pdu()) {
|
||||
next_header(Internals::pdu_flag_to_ip_type(inner_pdu()->pdu_type()));
|
||||
}
|
||||
@@ -131,7 +131,7 @@ uint32_t IPSecESP::header_size() const {
|
||||
return sizeof(header_);
|
||||
}
|
||||
|
||||
void IPSecESP::write_serialization(uint8_t* buffer, uint32_t total_sz, const PDU *) {
|
||||
void IPSecESP::write_serialization(uint8_t* buffer, uint32_t total_sz) {
|
||||
OutputMemoryStream output(buffer, total_sz);
|
||||
output.write(header_);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user