Fix V9DataFlowSet to avoid following struct.unpack error:#49
Open
irino wants to merge 1 commit intobitkeks:releasefrom
Open
Fix V9DataFlowSet to avoid following struct.unpack error:#49irino wants to merge 1 commit intobitkeks:releasefrom
irino wants to merge 1 commit intobitkeks:releasefrom
Conversation
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])
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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])