/third_party/ltp/utils/sctp/func_tests/ |
D | test_sockopt.c | 100 socklen_t optlen, addrlen; in main() local 167 optlen = sizeof(struct sctp_status); in main() 168 memset(&status, 0, optlen); in main() 170 &optlen); in main() 235 optlen = sizeof(struct sctp_status); in main() 236 memset(&status, 0, optlen); in main() 238 test_getsockopt(udp_clt_sk, SCTP_STATUS, &status, &optlen); in main() 243 optlen = sizeof(struct sctp_status); in main() 244 memset(&status, 0, optlen); in main() 247 &optlen); in main() [all …]
|
D | test_fragments.c | 96 socklen_t optlen; in main() local 212 optlen = sizeof(disable_frag); in main() 214 &optlen); in main()
|
/third_party/ltp/testcases/kernel/syscalls/getsockopt/ |
D | getsockopt01.c | 64 socklen_t optlen; variable 76 socklen_t *optlen; member 87 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1), 91 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1), 96 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, 0, &optlen, 106 PF_INET, SOCK_STREAM, 0, 500, SO_OOBINLINE, &optval, &optlen, 111 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1), 115 &optlen, (struct sockaddr *)&fsin1, sizeof(fsin1), 119 PF_INET, SOCK_STREAM, 0, IPPROTO_IP, -1, &optval, &optlen, 123 PF_INET, SOCK_STREAM, 0, IPPROTO_TCP, -1, &optval, &optlen, [all …]
|
/third_party/musl/src/network/ |
D | getsockopt.c | 6 int getsockopt(int fd, int level, int optname, void *restrict optval, socklen_t *restrict optlen) in getsockopt() argument 11 int r = __socketcall(getsockopt, fd, level, optname, optval, optlen, 0); in getsockopt() 19 if (*optlen < sizeof *tv) return __syscall_ret(-EINVAL); in getsockopt() 28 *optlen = sizeof *tv; in getsockopt() 36 optname, optval, optlen, 0); in getsockopt()
|
D | setsockopt.c | 9 int setsockopt(int fd, int level, int optname, const void *optval, socklen_t optlen) in setsockopt() argument 15 int r = __socketcall(setsockopt, fd, level, optname, optval, optlen, 0); in setsockopt() 23 if (optlen < sizeof *tv) return __syscall_ret(-EINVAL); in setsockopt() 41 optname, optval, optlen, 0); in setsockopt()
|
/third_party/toybox/lib/ |
D | commas.c | 66 int optlen = strlen(opt), len, no, got = 0; in comma_scan() local 73 if (optlen == len-no && !strncmp(opt, s+no, optlen)) { in comma_scan() 105 int optlen = strlen(opt), len, got = 0; in comma_remove() local 111 if (optlen == len && !strncmp(opt, s, optlen)) { in comma_remove()
|
/third_party/ltp/testcases/kernel/syscalls/setsockopt/ |
D | setsockopt04.c | 30 socklen_t optlen; in run() local 34 optlen = sizeof(sndbuf); in run() 36 SAFE_SETSOCKOPT(sockfd, SOL_SOCKET, SO_SNDBUFFORCE, &sndbuf, optlen); in run() 37 SAFE_GETSOCKOPT(sockfd, SOL_SOCKET, SO_SNDBUF, &rec_sndbuf, &optlen); in run()
|
D | setsockopt01.c | 76 int optlen; member 147 tdat[testno].optlen)); in main()
|
/third_party/lwip/src/core/ |
D | tcp_out.c | 161 u8_t optlen; in tcp_create_segment() local 166 optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb); in tcp_create_segment() 176 LWIP_ASSERT("p->tot_len >= optlen", p->tot_len >= optlen); in tcp_create_segment() 177 seg->len = p->tot_len - optlen; in tcp_create_segment() 201 TCPH_HDRLEN_FLAGS_SET(seg->tcphdr, (5 + optlen / 4), hdrflags); in tcp_create_segment() 396 u8_t optlen; in tcp_write() local 443 optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(TF_SEG_OPTS_TS, pcb); in tcp_write() 449 optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb); in tcp_write() 600 u16_t max_len = mss_local - optlen; in tcp_write() 610 …if ((p = tcp_pbuf_prealloc(PBUF_TRANSPORT, seglen + optlen, mss_local, &oversize, pcb, apiflags, q… in tcp_write() [all …]
|
/third_party/libwebsockets/lib/plat/freertos/ |
D | freertos-sockets.c | 82 socklen_t optlen = sizeof(optval); in lws_plat_set_socket_options() local 95 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 111 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 116 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 121 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 128 if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &optval, optlen) < 0) in lws_plat_set_socket_options()
|
/third_party/libwebsockets/lib/plat/unix/ |
D | unix-sockets.c | 97 socklen_t optlen = sizeof(optval); in lws_plat_set_socket_options() local 113 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 133 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 138 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 143 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 148 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 167 if (!unix_skt && setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 174 if (!unix_skt && setsockopt(fd, SOL_TCP, TCP_NODELAY, (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 178 if (!unix_skt && setsockopt(fd, tcp_proto->p_proto, TCP_NODELAY, &optval, optlen) < 0) in lws_plat_set_socket_options()
|
/third_party/lwip/src/api/ |
D | sockets.c | 166 #define LWIP_SOCKOPT_CHECK_OPTLEN(sock, optlen, opttype) do { if ((optlen) < sizeof(opttype)) { don… argument 167 #define LWIP_SOCKOPT_CHECK_OPTLEN_CONN(sock, optlen, opttype) do { \ argument 168 LWIP_SOCKOPT_CHECK_OPTLEN(sock, optlen, opttype); \ 170 #define LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, optlen, opttype) do { \ argument 171 LWIP_SOCKOPT_CHECK_OPTLEN(sock, optlen, opttype); \ 173 #define LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB_TYPE(sock, optlen, opttype, netconntype) do { \ argument 174 LWIP_SOCKOPT_CHECK_OPTLEN_CONN_PCB(sock, optlen, opttype); \ 302 static int lwip_getsockopt_impl(int s, int level, int optname, void *optval, socklen_t *optlen); 303 static int lwip_setsockopt_impl(int s, int level, int optname, const void *optval, socklen_t optlen… 2827 lwip_getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen) in lwip_getsockopt() argument [all …]
|
/third_party/ltp/include/ |
D | tst_safe_net.h | 23 #define SAFE_GETSOCKOPT(fd, level, optname, optval, optlen) \ argument 24 safe_getsockopt(__FILE__, __LINE__, fd, level, optname, optval, optlen) 26 #define SAFE_SETSOCKOPT(fd, level, optname, optval, optlen) \ argument 27 safe_setsockopt(__FILE__, __LINE__, fd, level, optname, optval, optlen)
|
D | safe_net_fn.h | 35 int optname, void *optval, socklen_t *optlen); 38 int optname, const void *optval, socklen_t optlen);
|
/third_party/uboot/u-boot-2020.01/scripts/dtc/ |
D | util.c | 430 int optlen; in util_usage() local 438 optlen = 0; in util_usage() 444 if (optlen < l) in util_usage() 445 optlen = l; in util_usage() 460 fprintf(fp, "--%-*s", optlen, long_opts[i].name); in util_usage() 463 (int)(optlen - strlen(long_opts[i].name) - a_arg_len), ""); in util_usage()
|
/third_party/ltp/lib/ |
D | safe_net.c | 162 int optname, void *optval, socklen_t *optlen) in safe_getsockopt() argument 164 int rval = getsockopt(sockfd, level, optname, optval, optlen); in safe_getsockopt() 171 file, lineno, sockfd, level, optname, optval, optlen); in safe_getsockopt() 177 int optname, const void *optval, socklen_t optlen) in safe_setsockopt() argument 181 rval = setsockopt(sockfd, level, optname, optval, optlen); in safe_setsockopt() 186 file, lineno, sockfd, level, optname, optval, optlen); in safe_setsockopt()
|
/third_party/uboot/u-boot-2020.01/common/ |
D | hwconfig.c | 33 size_t optlen = strlen(opt); in hwconfig_parse() local 40 end = str + optlen; in hwconfig_parse() 57 *arglen = min(maxlen, strlen(str)) - optlen - 1; in hwconfig_parse()
|
/third_party/boost/boost/asio/detail/impl/ |
D | winrt_ssocket_service_base.ipp | 234 std::size_t optlen, boost::system::error_code& ec) 247 if (optlen == sizeof(int)) 250 std::memcpy(&value, optval, optlen); 262 if (optlen == sizeof(int)) 265 std::memcpy(&value, optval, optlen); 291 std::size_t* optlen, boost::system::error_code& ec) const 304 if (*optlen >= sizeof(int)) 308 *optlen = sizeof(int); 319 if (*optlen >= sizeof(int)) 323 *optlen = sizeof(int);
|
/third_party/lwip/src/core/ipv4/ |
D | ip4.c | 804 u16_t optlen) argument 816 ip_options, optlen); 842 u16_t optlen) argument 861 if (optlen != 0) { 865 if (optlen > (IP_HLEN_MAX - IP_HLEN)) { 873 optlen_aligned = (u16_t)((optlen + 3) & ~3); 882 MEMCPY(p->payload, ip_options, optlen); 883 if (optlen < optlen_aligned) { 885 memset(((char *)p->payload) + optlen, 0, (size_t)(optlen_aligned - optlen));
|
/third_party/ffmpeg/libavformat/ |
D | network.c | 264 socklen_t optlen; in ff_listen_connect() local 281 optlen = sizeof(ret); in ff_listen_connect() 282 if (getsockopt (fd, SOL_SOCKET, SO_ERROR, &ret, &optlen)) in ff_listen_connect() 412 socklen_t optlen; in ff_connect_parallel() local 473 optlen = sizeof(last_err); in ff_connect_parallel() 474 if (getsockopt(attempts[i].fd, SOL_SOCKET, SO_ERROR, &last_err, &optlen)) in ff_connect_parallel()
|
/third_party/ltp/utils/sctp/testlib/ |
D | sctputil.h | 243 socklen_t *optlen) in test_getsockopt() argument 245 int error = getsockopt(sk, SOL_SCTP, optname, optval, optlen); in test_getsockopt() 253 socklen_t optlen) in test_setsockopt() argument 255 int error = setsockopt(sk, SOL_SCTP, optname, optval, optlen); in test_setsockopt()
|
/third_party/lwip/src/include/lwip/ |
D | ip4.h | 85 u16_t optlen); 88 u16_t optlen);
|
D | sockets.h | 581 int lwip_getsockopt (int s, int level, int optname, void *optval, socklen_t *optlen); 582 int lwip_setsockopt (int s, int level, int optname, const void *optval, socklen_t optlen); 643 #define setsockopt(s,level,optname,opval,optlen) lwip_setsockopt(s,level,optname,opval,optlen) argument 645 #define getsockopt(s,level,optname,opval,optlen) lwip_getsockopt(s,level,optname,opval,optlen) argument
|
/third_party/ltp/testcases/network/stress/ns-tools/ |
D | ns-mcast_receiver.c | 373 socklen_t optlen; /* size of the result parameter */ in receive_mcast() local 380 optlen = sizeof(msgbuf_size); in receive_mcast() 381 if (getsockopt(sd, SOL_SOCKET, SO_RCVBUF, &msgbuf_size, &optlen) < 0) { in receive_mcast()
|
/third_party/libcoap/src/ |
D | coap_tcp.c | 159 int optlen = (int)sizeof( error ); local 161 socklen_t optlen = (socklen_t)sizeof( error ); local 167 &optlen) == COAP_SOCKET_ERROR) {
|