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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user