From fb25982c80fb68745cff05a6a6a07a5c1e1ab4e7 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 --- CHANGELOG.next.asciidoc | 1 + packetbeat/sniffer/sniffer.go | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.next.asciidoc b/CHANGELOG.next.asciidoc index 6d91265b3077..28db2394c78f 100644 --- a/CHANGELOG.next.asciidoc +++ b/CHANGELOG.next.asciidoc @@ -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* diff --git a/packetbeat/sniffer/sniffer.go b/packetbeat/sniffer/sniffer.go index faba733723b9..f8a6cfd41f3e 100644 --- a/packetbeat/sniffer/sniffer.go +++ b/packetbeat/sniffer/sniffer.go @@ -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 }