1
0
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:
Matias Fontanini
2016-09-29 07:24:44 -07:00
parent 838a4a5cb9
commit 8dcfd6aae0
2 changed files with 13 additions and 0 deletions

View File

@@ -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;