mirror of
https://github.com/mfontanini/libtins
synced 2026-01-26 20:01:35 +01:00
Use endian independent way of setting IP fragment offset and flags
This commit is contained in:
@@ -112,7 +112,8 @@ IPv4Reassembler::packet_status IPv4Reassembler::process(PDU &pdu) {
|
||||
return FRAGMENTED;
|
||||
}
|
||||
ip->inner_pdu(pdu);
|
||||
ip->frag_off(0);
|
||||
ip->fragment_offset(0);
|
||||
ip->flags(static_cast<IP::Flags>(0));
|
||||
return REASSEMBLED;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user