From 2543aa906cf2111ae080442325026fdfc7f482e0 Mon Sep 17 00:00:00 2001 From: Markus Schmidl Date: Tue, 10 Sep 2024 14:30:33 +0200 Subject: [PATCH] add metrics for uplink macaccess fragments --- include/l2/upper_mac_metrics.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/l2/upper_mac_metrics.hpp b/include/l2/upper_mac_metrics.hpp index a3e8658..659bdad 100644 --- a/include/l2/upper_mac_metrics.hpp +++ b/include/l2/upper_mac_metrics.hpp @@ -201,7 +201,11 @@ class UpperMacMetrics { case MacPacketType::kMacBroadcast: throw std::runtime_error("C-Plane signalling may not be of type MacBroadcast"); case MacPacketType::kMacAccess: - c_plane_signalling_packet_metrics_.increment("MacAccess"); + if (packet.is_uplink_fragment()) { + c_plane_signalling_packet_metrics_.increment("MacAccess fragments"); + } else { + c_plane_signalling_packet_metrics_.increment("MacAccess"); + } break; case MacPacketType::kMacEndHu: c_plane_signalling_packet_metrics_.increment("MacEndHu");