Skip to content
Commit 5c5945dc authored by Xiaoyan Li's avatar Xiaoyan Li Committed by Paolo Abeni
Browse files

selftests/net: Add SHA256 computation over data sent in tcp_mmap



Add option to compute and send SHA256 over data sent (-i).

This is to ensure the correctness of data received.
Data is randomly populated from /dev/urandom.

Tested:
./tcp_mmap -s -z -i
./tcp_mmap -z -H $ADDR -i
SHA256 is correct

./tcp_mmap -s -i
./tcp_mmap -H $ADDR -i
SHA256 is correct

Signed-off-by: default avatarCoco Li <lixiaoyan@google.com>
Reviewed-by: default avatarEric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20230321081202.2370275-2-lixiaoyan@google.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 593ef60c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment