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

Relax length check on pflog packets #20

Merged
merged 1 commit into from
Jul 11, 2023
Merged

Conversation

dgl
Copy link
Contributor

@dgl dgl commented Jul 9, 2023

OpenBSD pflog adds some fields which aren't present in FreeBSD, as a result the packet's padding is different.

This change was made a long time ago in openbsd/src@72d1fa5

I've brought over the change from google/gopacket#1066, thanks @dennisoelkers for that. This doesn't add parsing for the additional fields (although this commit is enough to unblock the error, you can get the additional fields out of .Contents manually, but it might make sense to add them to the layer)

OpenBSD pflog adds some fields which aren't present in FreeBSD,
as a result the packet's padding is different.
@mosajjal mosajjal merged commit 0238d7a into gopacket:master Jul 11, 2023
1 check passed
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