Skip to content

Commit

Permalink
[Packetbeat] Fix BPF filter setting not being applied to sniffers
Browse files Browse the repository at this point in the history
- Ensure that the BPF filter setting is applied to sniffers
  • Loading branch information
taylor-swanson committed May 16, 2023
1 parent 3eb1860 commit 47bb850
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 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 @@ -148,6 +148,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 47bb850

Please sign in to comment.