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
  • Loading branch information
taylor-swanson authored May 17, 2023
1 parent a927de0 commit fb25982
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 @@ -196,6 +196,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 fb25982

Please sign in to comment.