Skip to content

Commit

Permalink
[Packetbeat] Fix BPF filter setting not being applied to sniffers (#3…
Browse files Browse the repository at this point in the history
…5484)

- Ensure that the BPF filter setting is applied to sniffers

(cherry picked from commit fb25982)
  • Loading branch information
taylor-swanson authored and mergify[bot] committed May 17, 2023
1 parent 11c6656 commit bac9106
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.next.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ https://github.com/elastic/beats/compare/v8.7.1\...main[Check the HEAD diff]
*Packetbeat*

- Fix double channel close panic when reloading. {pull}35324[35324]
- Fix BPF filter setting not being applied to sniffers. {issue}35363[35363] {pull}35484[35484]

*Winlogbeat*

Expand Down
1 change: 1 addition & 0 deletions packetbeat/sniffer/sniffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func New(testMode bool, _ string, decoders Decoders, interfaces []config.Interfa
}

child.config = iface
child.filter = iface.BpfFilter
s.sniffers[i] = child
}

Expand Down

0 comments on commit bac9106

Please sign in to comment.