Enable socket_stress_test with hostinet.

The min/max port ranges were broken.

PiperOrigin-RevId: 526137330
This commit is contained in:
Nicolas Lacasse
2023-04-21 14:35:51 -07:00
committed by gVisor bot
parent 2e45ce14a4
commit 81f644ddff
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -177,7 +177,7 @@ func (s *TestStack) SetForwarding(protocol tcpip.NetworkProtocolNumber, enable b
// PortRange implements Stack.
func (*TestStack) PortRange() (uint16, uint16) {
// Use the default Linux values per net/ipv4/af_inet.c:inet_init_net().
return 32768, 28232
return 32768, 60999
}
// SetPortRange implements Stack.
+1 -1
View File
@@ -346,7 +346,7 @@ func (*Stack) SetForwarding(tcpip.NetworkProtocolNumber, bool) error {
// PortRange implements inet.Stack.PortRange.
func (*Stack) PortRange() (uint16, uint16) {
// Use the default Linux values per net/ipv4/af_inet.c:inet_init_net().
return 32768, 28232
return 32768, 60999
}
// SetPortRange implements inet.Stack.SetPortRange.
+1
View File
@@ -928,6 +928,7 @@ syscall_test(
syscall_test(
size = "large",
add_hostinet = True,
shard_count = most_shards,
test = "//test/syscalls/linux:socket_stress_test",
)