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
Fixes:
* Pass through some more recvmmsg flags.
* Pass through some more get/setsockopt flags.
* Allow IP_MULTICAST_LOOP/TTL to have variable size, since it can be 8 or 32
bits.
* Convert IPPROTO_IP to IPPROTO_TCP/UDP so it can be returned properly by
getsockopt(SO_PROTO).
* Disable one test that requires CAP_SYS_ADMIN on the host. Will have to come
back to these.
PiperOrigin-RevId: 508938466
This was mostly a matter of allowing more get/setsockopts. Also had to support
getsockopt with a null option, because apparantly Linux allows that.
PiperOrigin-RevId: 508460614
The timeout is currently 200ms and causes occasionally flakes in Fuchsia infra
(https://fxbug.dev/112974). Increase it to 1s.
Fixes#8140
PiperOrigin-RevId: 486141423
In Linux, the minimum buffer size used in setsockopt for SO_SNDBUF and
SO_RCVBUF option is the value defined in SOCK_MIN_RCVBUF and SOCK_MIN_SNDBUF.
(These values depend on the struct sk_buff size).
The minimum buffer size for SO_RCVBUF in gVisor is 4KiB. Since the value in
Linux is based on sk_buff size, it is not useful to have the same limits set
in gVisor. Added a syscall test to verify the minimum receive buffer size.
PiperOrigin-RevId: 421642931
TCP is fully supported. As with SO_RCVBUF, other transport protocols perform
no-ops per DefaultSocketOptionsHandler.OnSetReceiveBufferSize.
PiperOrigin-RevId: 385023239