From 802b74f21520695f1b6e04fc42580e12cc76b278 Mon Sep 17 00:00:00 2001 From: Jesse Date: Thu, 3 Dec 2020 08:56:10 +0900 Subject: [PATCH] Fix UDP inbound reinject scenario (#551) Modify the inbound NBL's UDP port # to that of the original outbound traffic, in order to meet the inbound filter conditions --- network/trans/ddproxy/sys/DD_proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/network/trans/ddproxy/sys/DD_proxy.c b/network/trans/ddproxy/sys/DD_proxy.c index a75e2cf90..a59019089 100644 --- a/network/trans/ddproxy/sys/DD_proxy.c +++ b/network/trans/ddproxy/sys/DD_proxy.c @@ -833,7 +833,7 @@ DDProxyCloneModifyReinjectInbound( // is contiguous and 2-byte aligned. _Analysis_assume_(udpHeader != NULL); - udpHeader->destPort = + udpHeader->srcPort = packet->belongingFlow->toRemotePort; // This is our new source port -- or // the destination port of the original