Skip to content

Commit dc87cba

Browse files
committed
working on pcapng protocol impl (added EPB options)
1 parent 755a362 commit dc87cba

File tree

2 files changed

+480
-6
lines changed

2 files changed

+480
-6
lines changed

pcapkit/protocols/data/misc/pcapng.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ class EPB_FlagsOption(Option):
321321
#: Reception type.
322322
reception: 'PacketReception'
323323
#: FCS length.
324-
fcs_len: 'Optional[int]'
324+
fcs_len: 'int'
325325
#: Link-layer-dependent error - CRC error (bit 24).
326326
crc_error: 'bool'
327327
#: Link-layer-dependent error - packet too long error (bit 25).
@@ -341,9 +341,9 @@ class EPB_FlagsOption(Option):
341341

342342
if TYPE_CHECKING:
343343
def __init__(self, type: 'Enum_OptionType', length: 'int', direction: 'PacketDirection',
344-
reception: 'PacketReception', fcs_len: 'Optional[int]', crc_error: 'bool',
345-
too_long: 'bool', gap_error: 'bool', unaligned_error: 'bool', delimiter_error: 'bool',
346-
preamble_error: 'bool', symbole_error: 'bool') -> 'None': ...
344+
reception: 'PacketReception', fcs_len: 'int', crc_error: 'bool',
345+
too_long: 'bool', too_short: 'bool', gap_error: 'bool', unaligned_error: 'bool',
346+
delimiter_error: 'bool', preamble_error: 'bool', symbol_error: 'bool') -> 'None': ...
347347

348348

349349
class EPB_HashOption(Option):

0 commit comments

Comments
 (0)