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

Fix packetcapture bpf filter issue (#6815) #6821

Merged
merged 2 commits into from
Nov 19, 2024

Commits on Nov 19, 2024

  1. Fix packetcapture bpf filter issue (antrea-io#6815)

    In PacketCapture, packets which don’t match the target BPF can be
    received after the socket is created and before the bpf filter is
    applied.This patch use a zero bpf filter(match no packet), then
    empty out any packets that arrived before the “zero-BPF” filter was
    applied.At this point the socket is definitely empty and it can’t
    fill up with junk because the zero-BPF is in place. Then we replace
    the zero-BPF with the real BPF we want.
    
    Signed-off-by: Hang Yan <[email protected]>
    Co-authored-by: Antonin Bas <[email protected]>
    hangyan and antoninbas committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    bbc2d0b View commit details
    Browse the repository at this point in the history
  2. fix ci

    Signed-off-by: Hang Yan <[email protected]>
    hangyan committed Nov 19, 2024
    Configuration menu
    Copy the full SHA
    229dccb View commit details
    Browse the repository at this point in the history