commit | 768969b96ada5187720a944b00a0a5ab1ae4fa2a | [log] [tgz] |
---|---|---|
author | Geliang Tang <[email protected]> | Mon Jul 22 14:11:52 2024 +0800 |
committer | Geliang Tang <[email protected]> | Tue Jul 23 21:33:14 2024 +0800 |
tree | 4a18f0f845acb86210e533c0de10a311dcf98878 | |
parent | 67b1543aced727b150383e55aeb58b1ca0549b4a [diff] |
selftests/bpf: Clear type bits for start_server_addr The types "sotype | SOCK_NONBLOCK" are passed to socket_loopback_reuseport by some tests in sockmap_listen.c, so they must be handled in helper start_server_addr() too. This patch uses SOCK_TYPE_MASK to clear useless bits of "type" before check whether it supports listen for connections. Signed-off-by: Geliang Tang <[email protected]>