From 3a39f08735abd5d9e757f8ac2dd7b0e8eb359c03 Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Fri, 20 Dec 2024 09:09:53 +0100 Subject: [PATCH] util/usermetric: add more drop labels Updates #14280 Signed-off-by: Kristoffer Dalby --- util/usermetric/metrics.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/util/usermetric/metrics.go b/util/usermetric/metrics.go index 7f85989ff..0c5511759 100644 --- a/util/usermetric/metrics.go +++ b/util/usermetric/metrics.go @@ -28,6 +28,19 @@ const ( // ReasonACL means that the packet was not permitted by ACL. ReasonACL DropReason = "acl" + // ReasonMulticast means that the packet was dropped because it was a multicast packet. + ReasonMulticast DropReason = "multicast" + + // ReasonLinkLocalUnicast means that the packet was dropped because it was a link-local unicast packet. + ReasonLinkLocalUnicast DropReason = "link_local_unicast" + + // ReasonTooShort means that the packet was dropped because it was a bad packet, + // this could be due to a short packet. + ReasonTooShort DropReason = "too_short" + + // ReasonFragment means that the packet was dropped because it was an IP fragment. + ReasonFragment DropReason = "fragment" + // ReasonError means that the packet was dropped because of an error. ReasonError DropReason = "error" )