Skip to content

Commit

Permalink
Close rx handle (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
DanG100 authored Mar 26, 2024
1 parent 0e9dcc9 commit 2d618ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flows/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ func Handler(fn hdrsFunc, bpfFn bpfFunc, match matchFunc, reporter *Reporter) lw
klog.Errorf("cannot create handle, err: %v", err)
return
}
defer handle.Close()

// Set a BPF filter on the handle, this avoids our code needing to compare every
// packet that it receives, and rather asks the PCAP library to filter for us.
Expand Down

0 comments on commit 2d618ab

Please sign in to comment.