| 142 | } |
| 143 | |
| 144 | bool |
| 145 | UnixSocket::client_fastopen_supported() |
| 146 | { |
| 147 | ats_scoped_fd fd{::open("/proc/sys/net/ipv4/tcp_fastopen", O_RDONLY)}; |
| 148 | unsigned int bitfield{read_uint_from_fd(fd.get())}; |
| 149 | return bitfield & static_cast<unsigned int>(TCPFastopenMask::CLIENT_ENABLE); |
| 150 | } |
| 151 | |
| 152 | static unsigned int |
| 153 | read_uint_from_fd(int fd) |
nothing calls this directly
no test coverage detected