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

Fixed ek packet parsing when there are repeated protocol layers + added raw to each layer #677

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chrisawad
Copy link

With ek, when protocols are repeated, the layer becomes a list of dictionaries, one for each layer. This update adds proper support for this.

With ek, when protocols are repeated, the layer becomes a list of dictionaries, one for each layer. This update adds proper support for this.
…parsing

Sometimes a frame layer doesn't actually exist in the packet details, so I added extra protection
@chrisawad chrisawad changed the title Fixed ek packet parsing when there are repeated protocol layers Fixed ek packet parsing when there are repeated protocol layers + added raw to each layer Jan 4, 2024
@chrisawad
Copy link
Author

I needed raw for each layer, so I fixed this bug as well:
#587

Also fixed packet.get_raw_packet() which wasn't working since XXX_raw values were not assessable

@@ -34,25 +34,46 @@ def _extract_packet_from_data(self, data, got_first_packet=True):

return data[start_index:linesep_location], data[linesep_location + 1:]


def packet_from_ek_packet(json_pkt):
def packet_from_ek_packet_new(json_pkt):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you mean to rename this func

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.

None yet

2 participants