disable padding check for llc packets
the llc padding check causes an exception when android or iOS devices are used (dhcp). Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
parent
cdd7084b94
commit
fd348e71ae
@ -250,7 +250,6 @@ class ControlFormatS(stringify.StringifyMixin):
|
|||||||
(control,) = struct.unpack_from(cls._PACK_STR, buf)
|
(control,) = struct.unpack_from(cls._PACK_STR, buf)
|
||||||
|
|
||||||
assert (control >> 8) & 0b11 == cls.TYPE
|
assert (control >> 8) & 0b11 == cls.TYPE
|
||||||
assert (control >> 12) & 0b1111 == 0
|
|
||||||
|
|
||||||
supervisory_function = (control >> 10) & 0b11
|
supervisory_function = (control >> 10) & 0b11
|
||||||
pf_bit = (control >> 8) & 0b1
|
pf_bit = (control >> 8) & 0b1
|
||||||
|
Loading…
Reference in New Issue
Block a user