From a04d43a9425250eb4822cb9b1939501f0dfce537 Mon Sep 17 00:00:00 2001 From: conectado Date: Thu, 16 May 2024 20:32:21 -0300 Subject: [PATCH] chore(connlib): set_payload is called for udp packets for tests --- rust/ip-packet/src/make.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/ip-packet/src/make.rs b/rust/ip-packet/src/make.rs index 02a417a8796..9fef2eca29e 100644 --- a/rust/ip-packet/src/make.rs +++ b/rust/ip-packet/src/make.rs @@ -218,6 +218,7 @@ fn udp_header( udp_packet.set_source(sport); udp_packet.set_destination(dport); udp_packet.set_length(8 + payload.len() as u16); + udp_packet.set_payload(payload); match (saddr, daddr) { (IpAddr::V4(src), IpAddr::V4(dst)) => {