Skip to content

Relax length check on pflog packets#20

Merged
mosajjal merged 1 commit intogopacket:masterfrom
dgl:openbsd-pflog
Jul 11, 2023
Merged

Relax length check on pflog packets#20
mosajjal merged 1 commit intogopacket:masterfrom
dgl:openbsd-pflog

Conversation

@dgl
Copy link
Copy Markdown
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
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.

2 participants