/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
D | sockopt_sk.c | 33 __u8 *optval = ctx->optval; in _getsockopt() local 75 if (optval + sizeof(struct tcp_zerocopy_receive) > optval_end) in _getsockopt() 78 if (((struct tcp_zerocopy_receive *)optval)->address != 0) in _getsockopt() 85 if (optval + 1 > optval_end) in _getsockopt() 91 optval[0] = 0x55; in _getsockopt() 98 if (optval_end - optval != page_size) in _getsockopt() 107 if (optval + 1 > optval_end) in _getsockopt() 121 optval[0] = storage->val; in _getsockopt() 131 __u8 *optval = ctx->optval; in _setsockopt() local 154 if (optval + sizeof(__u32) > optval_end) in _setsockopt() [all …]
|
D | sockopt_multi.c | 12 __u8 *optval = ctx->optval; in _getsockopt_child() local 17 if (optval + 1 > optval_end) in _getsockopt_child() 20 if (optval[0] != 0x80) in _getsockopt_child() 25 optval[0] = 0x90; in _getsockopt_child() 35 __u8 *optval = ctx->optval; in _getsockopt_parent() local 40 if (optval + 1 > optval_end) in _getsockopt_parent() 43 if (optval[0] != 0x90) in _getsockopt_parent() 48 optval[0] = 0xA0; in _getsockopt_parent() 58 __u8 *optval = ctx->optval; in _setsockopt() local 63 if (optval + 1 > optval_end) in _setsockopt() [all …]
|
D | sockopt_inherit.c | 55 __u8 *optval = ctx->optval; in _getsockopt() local 60 if (optval + 1 > optval_end) in _getsockopt() 69 optval[0] = storage->val; in _getsockopt() 80 __u8 *optval = ctx->optval; in _setsockopt() local 85 if (optval + 1 > optval_end) in _setsockopt() 92 storage->val = optval[0]; in _setsockopt()
|
D | sockopt_qos_to_cc.c | 16 int *optval = ctx->optval; in sockopt_qos_to_cc() local 24 if (optval + 1 > optval_end) in sockopt_qos_to_cc() 33 if (*optval == 0x2d) { in sockopt_qos_to_cc()
|
/external/ltp/testcases/kernel/syscalls/setsockopt/ |
D | setsockopt01.c | 22 static int optval; variable 30 void *optval; member 35 {-1, -1, -1, SOL_SOCKET, SO_OOBINLINE, &optval, sizeof(optval), 37 {-1, -1, -1, SOL_SOCKET, SO_OOBINLINE, &optval, sizeof(optval), 40 sizeof(optval), EFAULT, "invalid option buffer"}, 41 {PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 0, 43 {PF_INET, SOCK_STREAM, 0, 500, SO_OOBINLINE, &optval, sizeof(optval), 45 {PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval, 46 sizeof(optval), ENOPROTOOPT, "invalid option name (UDP)"}, 47 {PF_INET, SOCK_STREAM, 0, IPPROTO_IP, -1, &optval, sizeof(optval), [all …]
|
/external/libwebsockets/lib/plat/freertos/ |
D | freertos-sockets.c | 89 int optval = 1; in lws_plat_set_socket_options() local 90 socklen_t optlen = sizeof(optval); in lws_plat_set_socket_options() 101 optval = 1; in lws_plat_set_socket_options() 103 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 117 optval = vhost->ka_time; in lws_plat_set_socket_options() 119 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 122 optval = vhost->ka_interval; in lws_plat_set_socket_options() 124 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 127 optval = vhost->ka_probes; in lws_plat_set_socket_options() 129 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() [all …]
|
/external/libwebsockets/lib/plat/unix/ |
D | unix-sockets.c | 104 int optval = 1; in lws_plat_set_socket_options() local 105 socklen_t optlen = sizeof(optval); in lws_plat_set_socket_options() 119 optval = 1; in lws_plat_set_socket_options() 121 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 138 optval = 1000 * (vhost->ka_time + in lws_plat_set_socket_options() 141 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 144 optval = vhost->ka_time; in lws_plat_set_socket_options() 146 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() 149 optval = vhost->ka_interval; in lws_plat_set_socket_options() 151 (const void *)&optval, optlen) < 0) in lws_plat_set_socket_options() [all …]
|
/external/ltp/testcases/kernel/syscalls/getsockopt/ |
D | getsockopt01.c | 63 int optval; variable 75 void *optval; member 86 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 90 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 100 PF_INET, SOCK_STREAM, 0, SOL_SOCKET, SO_OOBINLINE, &optval, 0, 106 PF_INET, SOCK_STREAM, 0, 500, SO_OOBINLINE, &optval, &optlen, 110 PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval, 114 PF_INET, SOCK_STREAM, 0, IPPROTO_UDP, SO_OOBINLINE, &optval, 119 PF_INET, SOCK_STREAM, 0, IPPROTO_IP, -1, &optval, &optlen, 123 PF_INET, SOCK_STREAM, 0, IPPROTO_TCP, -1, &optval, &optlen, [all …]
|
/external/rust/crates/mio/src/sys/windows/ |
D | udp.rs | 27 let mut optval: MaybeUninit<i32> = MaybeUninit::uninit(); in only_v6() localVariable 35 optval.as_mut_ptr().cast(), in only_v6() 44 let optval = unsafe { optval.assume_init() }; in only_v6() localVariable 45 Ok(optval != 0) in only_v6()
|
/external/strace/tests/ |
D | net-y-unix.c | 79 TAIL_ALLOC_OBJECT_CONST_PTR(unsigned int, optval); in main() 80 *len = sizeof(*optval); in main() 81 if (getsockopt(listen_fd, SOL_SOCKET, SO_PASSCRED, optval, len)) in main() 85 listen_fd, listen_inode, *optval, (unsigned) *len); in main() 157 *optval = 1; in main() 158 *len = sizeof(*optval); in main() 159 if (setsockopt(connect_fd, SOL_SOCKET, SO_PASSCRED, optval, *len)) in main() 163 connect_fd, connect_inode, *optval, (unsigned) *len); in main()
|
D | net-yy-unix.c | 80 TAIL_ALLOC_OBJECT_CONST_PTR(unsigned int, optval); in main() 81 *len = sizeof(*optval); in main() 82 if (getsockopt(listen_fd, SOL_SOCKET, SO_PASSCRED, optval, len)) in main() 86 listen_fd, listen_inode, TEST_SOCKET, *optval, (unsigned) *len); in main() 161 *optval = 1; in main() 162 *len = sizeof(*optval); in main() 163 if (setsockopt(connect_fd, SOL_SOCKET, SO_PASSCRED, optval, *len)) in main() 167 connect_fd, connect_inode, *optval, (unsigned) *len); in main()
|
D | net-yy-inet.c | 101 TAIL_ALLOC_OBJECT_CONST_PTR(unsigned int, optval); in main() 102 *len = sizeof(*optval); in main() 103 if (getsockopt(listen_fd, SOL_TCP, TCP_MAXSEG, optval, len)) in main() 107 listen_fd, listen_port, *optval, (unsigned) *len); in main() 158 *len = sizeof(*optval); in main() 159 if (setsockopt(connect_fd, SOL_TCP, TCP_MAXSEG, optval, *len)) in main() 163 connect_fd, connect_port, listen_port, *optval, in main()
|
/external/strace/tests-mx32/ |
D | net-y-unix.c | 79 TAIL_ALLOC_OBJECT_CONST_PTR(unsigned int, optval); in main() 80 *len = sizeof(*optval); in main() 81 if (getsockopt(listen_fd, SOL_SOCKET, SO_PASSCRED, optval, len)) in main() 85 listen_fd, listen_inode, *optval, (unsigned) *len); in main() 157 *optval = 1; in main() 158 *len = sizeof(*optval); in main() 159 if (setsockopt(connect_fd, SOL_SOCKET, SO_PASSCRED, optval, *len)) in main() 163 connect_fd, connect_inode, *optval, (unsigned) *len); in main()
|
D | net-yy-unix.c | 80 TAIL_ALLOC_OBJECT_CONST_PTR(unsigned int, optval); in main() 81 *len = sizeof(*optval); in main() 82 if (getsockopt(listen_fd, SOL_SOCKET, SO_PASSCRED, optval, len)) in main() 86 listen_fd, listen_inode, TEST_SOCKET, *optval, (unsigned) *len); in main() 161 *optval = 1; in main() 162 *len = sizeof(*optval); in main() 163 if (setsockopt(connect_fd, SOL_SOCKET, SO_PASSCRED, optval, *len)) in main() 167 connect_fd, connect_inode, *optval, (unsigned) *len); in main()
|
D | net-yy-inet.c | 101 TAIL_ALLOC_OBJECT_CONST_PTR(unsigned int, optval); in main() 102 *len = sizeof(*optval); in main() 103 if (getsockopt(listen_fd, SOL_TCP, TCP_MAXSEG, optval, len)) in main() 107 listen_fd, listen_port, *optval, (unsigned) *len); in main() 158 *len = sizeof(*optval); in main() 159 if (setsockopt(connect_fd, SOL_TCP, TCP_MAXSEG, optval, *len)) in main() 163 connect_fd, connect_port, listen_port, *optval, in main()
|
/external/strace/tests-m32/ |
D | net-yy-unix.c | 80 TAIL_ALLOC_OBJECT_CONST_PTR(unsigned int, optval); in main() 81 *len = sizeof(*optval); in main() 82 if (getsockopt(listen_fd, SOL_SOCKET, SO_PASSCRED, optval, len)) in main() 86 listen_fd, listen_inode, TEST_SOCKET, *optval, (unsigned) *len); in main() 161 *optval = 1; in main() 162 *len = sizeof(*optval); in main() 163 if (setsockopt(connect_fd, SOL_SOCKET, SO_PASSCRED, optval, *len)) in main() 167 connect_fd, connect_inode, *optval, (unsigned) *len); in main()
|
D | net-y-unix.c | 79 TAIL_ALLOC_OBJECT_CONST_PTR(unsigned int, optval); in main() 80 *len = sizeof(*optval); in main() 81 if (getsockopt(listen_fd, SOL_SOCKET, SO_PASSCRED, optval, len)) in main() 85 listen_fd, listen_inode, *optval, (unsigned) *len); in main() 157 *optval = 1; in main() 158 *len = sizeof(*optval); in main() 159 if (setsockopt(connect_fd, SOL_SOCKET, SO_PASSCRED, optval, *len)) in main() 163 connect_fd, connect_inode, *optval, (unsigned) *len); in main()
|
D | net-yy-inet.c | 101 TAIL_ALLOC_OBJECT_CONST_PTR(unsigned int, optval); in main() 102 *len = sizeof(*optval); in main() 103 if (getsockopt(listen_fd, SOL_TCP, TCP_MAXSEG, optval, len)) in main() 107 listen_fd, listen_port, *optval, (unsigned) *len); in main() 158 *len = sizeof(*optval); in main() 159 if (setsockopt(connect_fd, SOL_TCP, TCP_MAXSEG, optval, *len)) in main() 163 connect_fd, connect_port, listen_port, *optval, in main()
|
/external/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() 25 tv = optval; 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() 24 tv = optval; in setsockopt() 41 optname, optval, optlen, 0); in setsockopt()
|
/external/libvpx/build/make/ |
D | gen_msvs_vcxproj.sh | 140 optval="${opt#*=}" 144 --target=*) target="${optval}" 146 --out=*) outfile="$optval" 148 --name=*) name="${optval}" 150 --proj-guid=*) guid="${optval}" 152 --module-def=*) module_def="${optval}" 160 --as=*) as="${optval}" 163 src_path_bare=$(fix_path "$optval") 171 vs_ver="$optval" 172 case "$optval" in
|
D | gen_asm_deps.sh | 27 optval="${opt#*=}" 29 --build-pfx=*) pfx="${optval}" 31 --depfile=*) out="${optval}"
|
/external/python/cpython2/Lib/ |
D | ConfigParser.py | 517 optname, vi, optval = mo.group('option', 'vi', 'value') 521 if optval is not None: 522 if vi in ('=', ':') and ';' in optval: 525 pos = optval.find(';') 526 if pos != -1 and optval[pos-1].isspace(): 527 optval = optval[:pos] 528 optval = optval.strip() 530 if optval == '""': 531 optval = '' 532 cursect[optname] = [optval] [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt.c | 106 offsetof(struct bpf_sockopt, optval)), 321 offsetof(struct bpf_sockopt, optval)), 348 offsetof(struct bpf_sockopt, optval)), 452 offsetof(struct bpf_sockopt, optval)), 656 offsetof(struct bpf_sockopt, optval)), 734 offsetof(struct bpf_sockopt, optval)), 761 offsetof(struct bpf_sockopt, optval)), 807 offsetof(struct bpf_sockopt, optval)), 879 void *optval = NULL; in run_test() local 924 optval = malloc(test->get_optlen); in run_test() [all …]
|
/external/rust/crates/mio/src/sys/unix/ |
D | udp.rs | 19 let mut optval: libc::c_int = 0; in only_v6() localVariable 26 &mut optval as *mut _ as *mut _, in only_v6() 30 Ok(optval != 0) in only_v6()
|