mirror of
https://github.com/mfontanini/libtins
synced 2026-01-25 19:51:34 +01:00
Set protocol to 0 if no inner_pdu on IP
This commit is contained in:
@@ -439,6 +439,9 @@ void IP::write_serialization(uint8_t* buffer, uint32_t total_sz, const PDU* pare
|
||||
protocol(new_flag);
|
||||
}
|
||||
}
|
||||
else {
|
||||
protocol(0);
|
||||
}
|
||||
|
||||
uint16_t original_frag_off = header_.frag_off;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user