reset aggregated event type to unknown

Signed-off-by: Dmitri Dolguikh <dmitri.external@netbird.io>
This commit is contained in:
Dmitri Dolguikh
2026-06-16 16:45:40 +02:00
parent 3d6fc3bf92
commit 9ea463ec2e

View File

@@ -105,6 +105,7 @@ func (am *AggregatingMemory) GetAggregatedEvents() []*types.Event {
case types.TypeEnd:
event.NumOfEnds += 1
}
event.Type = types.TypeUnknown
// Please note that ICMPCode field isn't propagated by the manager (see flow/proto/flow.pb.go, FlowFields struct)
// so the field value in an icmp event in the "aggregated" doesn't matter