Closed alexbriskin closed 6 months ago
@alexbriskin it will be very nice to add gtest for this functionality. It could be used as an template for checking other sockopt parameters. Possible place is tests/gtest/tcp/tcp_sockopt.cc (See: https://github.com/Mellanox/libxlio/blob/master/tests/gtest/tcp/tcp_sockopt.cc) Expected tests:
@alexbriskin it will be very nice to add gtest for this functionality. It could be used as an template for checking other sockopt parameters. Possible place is tests/gtest/tcp/tcp_sockopt.cc (See: https://github.com/Mellanox/libxlio/blob/master/tests/gtest/tcp/tcp_sockopt.cc) Expected tests:
- getsockopt() takes default value from /proc/sys/net/ipv4/tcp_keepalive_time
- setsockopt(value1) -> getsockopt(value) : value==value1
- accept() -> getsockopt(value) : value==value of listen socket
- passing invalid parameters : Return EINVAL
Done
bot:retest
bot:retest
Description
Please provide a summary of the change.
What
Subject: what this PR is doing in one line.
Why ?
Justification for the PR. If there is existing issue/bug please reference.
How ?
It is optional but for complex PRs please provide information about the design, architecture, approach, etc.
Change type
What kind of change does this PR introduce?
Check list