From da5b9391776c2e4b0e525a1fb4966a78500ab8f8 Mon Sep 17 00:00:00 2001 From: Taylor Swanson <90622908+taylor-swanson@users.noreply.github.com> Date: Wed, 17 May 2023 07:50:34 -0500 Subject: [PATCH] [Packetbeat] Fix BPF filter setting not being applied to sniffers (#35484) - Ensure that the BPF filter setting is applied to sniffers (cherry picked from commit fb25982c80fb68745cff05a6a6a07a5c1e1ab4e7) --- CHANGELOG.next.asciidoc | 2 ++ packetbeat/sniffer/sniffer.go | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 57214c76e22e..57a5104ebd0e 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -195,6 +195,8 @@ 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 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* diff --git a/packetbeat/sniffer/sniffer.go b/packetbeat/sniffer/sniffer.go index efb12d045a0e..edc6fcf5177f 100644 --- a/packetbeat/sniffer/sniffer.go +++ b/packetbeat/sniffer/sniffer.go @@ -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 }