mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Enable socket_stress_test with hostinet.
The min/max port ranges were broken. PiperOrigin-RevId: 526137330
This commit is contained in:
committed by
gVisor bot
parent
2e45ce14a4
commit
81f644ddff
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -928,6 +928,7 @@ syscall_test(
|
||||
|
||||
syscall_test(
|
||||
size = "large",
|
||||
add_hostinet = True,
|
||||
shard_count = most_shards,
|
||||
test = "//test/syscalls/linux:socket_stress_test",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user