On 9/6/26 10:56 PM, shuo huang wrote:
udpgso_bench_rx supports UDP payload verification but rejects the combination of TCP and verification mode. Its TCP receive path discards the payload, so it cannot check the data generated by udpgso_bench_tx. Read the TCP payload into a buffer when verification is requested and check it against the transmitter's repeating alphabetic pattern. Preserve the verification position across recv() calls because TCP does not preserve send boundaries. Restart the pattern at the payload length supplied with -l, matching the transmitter's pattern restart on each message. Require a nonzero -l value for TCP verification and retain the existing discard path when verification is disabled. Signed-off-by: shuo huang <[email protected]>
Reviewed-by: Jiayuan Chen <[email protected]>

