mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
test: don't check SO_REUSEPORT for non-inet sockets
AllSocketPairTest.SetAndGetBooleanSocketOptions fails on the upstream linux
kernel. The behaviour has been changed by 5b0af621c3f6 ("net: restrict
SO_REUSEPORT to inet sockets").
PiperOrigin-RevId: 722774180
This commit is contained in:
@@ -900,8 +900,8 @@ TEST_P(AllSocketPairTest, GetSockoptProtocol) {
|
||||
}
|
||||
|
||||
TEST_P(AllSocketPairTest, SetAndGetBooleanSocketOptions) {
|
||||
int sock_opts[] = {SO_BROADCAST, SO_PASSCRED, SO_NO_CHECK,
|
||||
SO_REUSEADDR, SO_REUSEPORT, SO_KEEPALIVE};
|
||||
int sock_opts[] = {SO_BROADCAST, SO_PASSCRED, SO_NO_CHECK, SO_REUSEADDR,
|
||||
SO_KEEPALIVE};
|
||||
for (int sock_opt : sock_opts) {
|
||||
auto sockets = ASSERT_NO_ERRNO_AND_VALUE(NewSocketPair());
|
||||
int enable = -1;
|
||||
|
||||
Reference in New Issue
Block a user