Lines Matching refs:optlen
23 socklen_t optlen; in getsetsockopt() local
34 optlen = getpagesize() * 2; in getsetsockopt()
35 big_buf = calloc(1, optlen); in getsetsockopt()
42 err = setsockopt(fd, SOL_IP, IP_TOS, big_buf, optlen); in getsetsockopt()
48 memset(big_buf, 0, optlen); in getsetsockopt()
49 optlen = 1; in getsetsockopt()
50 err = getsockopt(fd, SOL_IP, IP_TOS, big_buf, &optlen); in getsetsockopt()
81 optlen = 4; in getsetsockopt()
82 err = getsockopt(fd, SOL_CUSTOM, 0, &buf, &optlen); in getsetsockopt()
88 if (optlen != 1) { in getsetsockopt()
89 log_err("Unexpected optlen %d != 1", optlen); in getsetsockopt()
99 optlen = getpagesize() * 2; in getsetsockopt()
100 memset(big_buf, 0, optlen); in getsetsockopt()
102 err = setsockopt(fd, SOL_IP, IP_FREEBIND, big_buf, optlen); in getsetsockopt()
108 err = getsockopt(fd, SOL_IP, IP_FREEBIND, big_buf, &optlen); in getsetsockopt()
114 if (optlen != 1 || *(__u8 *)big_buf != 0x55) { in getsetsockopt()
116 optlen, *(__u8 *)big_buf); in getsetsockopt()
129 optlen = 4; in getsetsockopt()
130 err = getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &buf, &optlen); in getsetsockopt()
152 optlen = sizeof(buf.cc); in getsetsockopt()
153 err = getsockopt(fd, SOL_TCP, TCP_CONGESTION, &buf, &optlen); in getsetsockopt()
167 optlen = sizeof(buf.zc); in getsetsockopt()
168 err = getsockopt(fd, SOL_TCP, TCP_ZEROCOPY_RECEIVE, &buf, &optlen); in getsetsockopt()
177 optlen = sizeof(buf.zc); in getsetsockopt()
179 err = getsockopt(fd, SOL_TCP, TCP_ZEROCOPY_RECEIVE, &buf, &optlen); in getsetsockopt()