Skip to content

Fix V9DataFlowSet to avoid following struct.unpack error:#49

Open
irino wants to merge 1 commit intobitkeks:releasefrom
irino:v9_data_decode_fix
Open

Fix V9DataFlowSet to avoid following struct.unpack error:#49
irino wants to merge 1 commit intobitkeks:releasefrom
irino:v9_data_decode_fix

Conversation

@irino
Copy link

@irino irino commented Feb 23, 2024

Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
self.run()
File "/python-netflow-v9-softflowd/netflow/collector.py", line 129, in run
export = parse_packet(pkt.data, templates)
File "/python-netflow-v9-softflowd/netflow/utils.py", line 96, in parse_packet
return V9ExportPacket(data, templates["netflow"])
File "/python-netflow-v9-softflowd/netflow/v9.py", line 558, in init
dfs = V9DataFlowSet(data[offset:], matched_template)
File "/python-netflow-v9-softflowd/netflow/v9.py", line 231, in init
unpacked_values = struct.unpack(struct_format, data[offset:offset + struct_len])

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/python-netflow-v9-softflowd/netflow/collector.py", line 129, in run
    export = parse_packet(pkt.data, templates)
  File "/python-netflow-v9-softflowd/netflow/utils.py", line 96, in parse_packet
    return V9ExportPacket(data, templates["netflow"])
  File "/python-netflow-v9-softflowd/netflow/v9.py", line 558, in __init__
    dfs = V9DataFlowSet(data[offset:], matched_template)
  File "/python-netflow-v9-softflowd/netflow/v9.py", line 231, in __init__
    unpacked_values = struct.unpack(struct_format, data[offset:offset + struct_len])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments