Skip to content

Commit

Permalink
Fix UDP inbound reinject scenario (#551)
Browse files Browse the repository at this point in the history
Modify the inbound NBL's UDP port # to that of the original outbound traffic, in order to meet the inbound filter conditions
  • Loading branch information
jesweare authored Dec 2, 2020
1 parent 28f8fc7 commit 802b74f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/trans/ddproxy/sys/DD_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 802b74f

Please sign in to comment.