1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-25 19:51:34 +01:00

Merge pull request #70 from benmcmorran/master

Perserve IP protocol when using RawPDU
This commit is contained in:
Matias Fontanini
2015-04-21 09:00:57 -07:00

View File

@@ -385,7 +385,7 @@ void IP::write_serialization(uint8_t *buffer, uint32_t total_sz, const PDU* pare
Internals::pdu_type_to_id<IP>(inner_pdu()->pdu_type())
);
}
if(!is_fragmented() || new_flag != 0xff)
if(!is_fragmented() && new_flag != 0xff)
protocol(new_flag);
}