From 9f0c3d1c102c4936283f67036c16b86fb0a79c17 Mon Sep 17 00:00:00 2001 From: baydakov-georgiy Date: Thu, 2 Jul 2026 02:58:31 +0300 Subject: [PATCH] fix(worker): fix byte order when checking ports in check_is_exception function --- worker/src/dpdk_filter/proc_packets.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worker/src/dpdk_filter/proc_packets.c b/worker/src/dpdk_filter/proc_packets.c index 19bb286..40fab59 100644 --- a/worker/src/dpdk_filter/proc_packets.c +++ b/worker/src/dpdk_filter/proc_packets.c @@ -26,8 +26,9 @@ void package_sending_decision(bool solution_is_send, struct rte_mbuf *pkt, } bool check_is_exception(uint16_t *port) { + uint16_t host_port = rte_be_to_cpu_16(*port); for (int i = 0; i < LEN_LIST_EXCEPTION_PORTS; i++) { - if (*port == LIST_EXCEPTION_PORTS[i]) { + if (host_port == LIST_EXCEPTION_PORTS[i]) { return true; } }