Open GoogleCodeExporter opened 9 years ago
To get the offset from that bitmask you have to do (16384 & 0x1fff) * 8
The 16 bits are:
yyyx xxxx xxxx xxxx
Where yyy = Flags (bit 0: Reserved, 1: Don't Fragment, 2: More Fragments)
And x... = Offset
Original comment by noro...@gmail.com
on 6 Sep 2011 at 8:44
Attached flags_offset.patch adds new properties .flag_df, .flag_mf and .offset
which return the expected values. Existing .off is not changed to not break
running code.
If you don't like the separate DF and MF fields, use offset_only.patch
Original comment by matthaeu...@gmail.com
on 15 Jan 2013 at 3:36
Attachments:
Original issue reported on code.google.com by
j...@midokura.jp
on 3 Feb 2011 at 6:44Attachments: