Closed galosss closed 3 years ago
in IP6FragmentHeader , the implemented setter of m_flag is using the mask ~0xfffe, as follows:
IP6FragmentHeader
m_flag
~0xfffe
@m_flag.setter def m_flag(self, v): self.frag_off_resv_m = (self.frag_off_resv_m & ~0xfffe) | v
while the mask should be 0xfffe , without negating ~. it fails the construction of the packet as a result.
0xfffe
~
thanks!
good catch!
in
IP6FragmentHeader
, the implemented setter ofm_flag
is using the mask~0xfffe
, as follows:while the mask should be
0xfffe
, without negating~
. it fails the construction of the packet as a result.thanks!