Skip to content

Commit

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

- Ensure that the BPF filter setting is applied to sniffers

(cherry picked from commit fb25982)

---------

Co-authored-by: Taylor Swanson <90622908+taylor-swanson@users.noreply.github.com>
Co-authored-by: Taylor Swanson <taylor.swanson@elastic.co>
  • Loading branch information
3 people authored May 17, 2023
1 parent e69438b commit c71317d
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 @@ -195,6 +195,7 @@ automatic splitting at root level, if root level element is an array. {pull}3415
*Packetbeat*

- Fix documentation for `flows.period` related to flow reporting. {pull}35009[35009]
- 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 c71317d

Please sign in to comment.