Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: release
Choose a base branch
from

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