1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-26 03:51:35 +01:00

Fix IP fragment reassemble when packet has flags DF+MF

This commit is contained in:
Matias Fontanini
2016-02-21 09:23:44 -08:00
parent 8812153491
commit 9dabb6f570
3 changed files with 31 additions and 2 deletions

View File

@@ -177,7 +177,7 @@ void IP::init_ip_fields() {
}
bool IP::is_fragmented() const {
return flags() == IP::MORE_FRAGMENTS || fragment_offset() != 0;
return (flags() & IP::MORE_FRAGMENTS) != 0 || fragment_offset() != 0;
}
// Setters