Skip to content

Support removing BPF filter from AF_PACKET socket#18

Merged
mosajjal merged 1 commit intogopacket:masterfrom
simeonmiteff:afp-remove-bpf
Jun 2, 2023
Merged

Support removing BPF filter from AF_PACKET socket#18
mosajjal merged 1 commit intogopacket:masterfrom
simeonmiteff:afp-remove-bpf

Conversation

@simeonmiteff
Copy link
Copy Markdown
Contributor

Do a setsockopt with SO_DETACH_FILTER when TPacket.SetBPF() is called with a empty BPF instruction list.

Do a setsockopt with SO_DETACH_FILTER when TPacket.SetBPF() is called
with a empty BPF instruction list.
Copy link
Copy Markdown
Contributor

@mosajjal mosajjal left a comment

Choose a reason for hiding this comment

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

lgtm

@mosajjal mosajjal merged commit 8df6dd2 into gopacket:master Jun 2, 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