/external/ltp/utils/sctp/func_tests/ |
D | test_1_to_1_sockopt.c | 112 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 115 error = setsockopt(-1, IPPROTO_SCTP, 0, 0, 0); in main() 128 error = setsockopt(fd, IPPROTO_SCTP, 0, 0, 0); in main() 148 error = setsockopt(sk, IPPROTO_SCTP, SCTP_RTOINFO, in main() 157 error = setsockopt(sk, IPPROTO_SCTP, SCTP_AUTOCLOSE, 0, 0); in main() 165 error = getsockopt(-1, IPPROTO_SCTP, 0, 0, 0); in main() 178 error = getsockopt(fd, IPPROTO_SCTP, 0, 0, 0); in main() 204 error = getsockopt(sk, IPPROTO_SCTP, SCTP_RTOINFO, in main() 213 error = getsockopt(sk, IPPROTO_SCTP, SCTP_AUTOCLOSE, &grtinfo, &len); in main() 222 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() [all …]
|
D | test_1_to_1_rtoinfo.c | 69 sd = test_socket (PF_INET, SOCK_STREAM, IPPROTO_SCTP); in main() 74 ret = getsockopt(sd, IPPROTO_SCTP, SCTP_RTOINFO, &grtoinfo, &len); in main() 87 ret = setsockopt(sd, IPPROTO_SCTP, SCTP_RTOINFO, &srtoinfo, in main() 96 ret = getsockopt(sd, IPPROTO_SCTP, SCTP_RTOINFO, &grtoinfo, &len); in main()
|
D | test_1_to_1_socket_bind_listen.c | 102 sk = socket(-1, SOCK_STREAM, IPPROTO_SCTP); in main() 110 sk = socket(pf_class, -1, IPPROTO_SCTP); in main() 118 sk = socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 189 sk = socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 221 sk = socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 238 sk = socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
|
D | test_1_to_1_connectx.c | 87 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 88 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 91 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 95 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 97 clnt2_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
|
D | test_1_to_1_connect.c | 88 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 89 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 92 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 96 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 98 clnt2_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
|
D | test_1_to_1_sendmsg.c | 100 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 102 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 104 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 136 cmsg->cmsg_level = IPPROTO_SCTP; in main() 259 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 261 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 294 cmsg->cmsg_level = IPPROTO_SCTP; in main() 344 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
|
D | test_1_to_1_send.c | 85 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 87 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 89 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 178 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 180 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
|
D | test_1_to_1_accept_close.c | 94 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 97 new_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 101 clnt_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 104 clnt2_sk[i] = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 107 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
|
D | test_sockopt.c | 149 udp_svr_sk = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 150 udp_clt_sk = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 187 cmsg->cmsg_level = IPPROTO_SCTP; in main() 283 udp_svr_sk = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 284 udp_clt_sk = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 362 udp_svr_sk = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 363 udp_clt_sk = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 385 cmsg->cmsg_level = IPPROTO_SCTP; in main() 427 error = getsockopt(udp_clt_sk, IPPROTO_SCTP, SCTP_STATUS, in main() 446 udp_svr_sk = test_socket(pf_class, SOCK_SEQPACKET, IPPROTO_SCTP); in main() [all …]
|
D | test_1_to_1_sendto.c | 80 sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 82 lstn_sk = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main() 135 sk1 = test_socket(pf_class, SOCK_STREAM, IPPROTO_SCTP); in main()
|
D | test_assoc_abort.c | 93 svr_sk = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 107 clt_sk[i] = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 126 cmsg->cmsg_level = IPPROTO_SCTP; in main() 189 cmsg->cmsg_level = IPPROTO_SCTP; in main()
|
D | test_assoc_shutdown.c | 92 svr_sk = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 107 clt_sk[i] = test_socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() 126 cmsg->cmsg_level = IPPROTO_SCTP; in main() 190 cmsg->cmsg_level = IPPROTO_SCTP; in main()
|
D | test_1_to_1_threads.c | 107 cmsg->cmsg_level = IPPROTO_SCTP; in t_send() 152 server_sk = test_socket(PF_INET, SOCK_STREAM, IPPROTO_SCTP); in main() 153 client_sk = test_socket(PF_INET, SOCK_STREAM, IPPROTO_SCTP); in main()
|
/external/usrsctp/fuzzer/ |
D | fuzzer_connect.c | 284 socket_client = usrsctp_socket(AF_CONN, SOCK_STREAM, IPPROTO_SCTP, NULL, NULL, 0, 0); in LLVMFuzzerTestOneInput() 291 …result = usrsctp_setsockopt(socket_client, IPPROTO_SCTP, SCTP_INITMSG, &initmsg, sizeof(struct sct… in LLVMFuzzerTestOneInput() 303 result = usrsctp_setsockopt(socket_client, IPPROTO_SCTP, SCTP_EVENT, &event, sizeof(event)); in LLVMFuzzerTestOneInput() 308 …result = usrsctp_setsockopt(socket_client, IPPROTO_SCTP, SCTP_RECVRCVINFO, &optval, sizeof(optval)… in LLVMFuzzerTestOneInput() 312 …result = usrsctp_setsockopt(socket_client, IPPROTO_SCTP, SCTP_RECVNXTINFO, &optval, sizeof(optval)… in LLVMFuzzerTestOneInput() 318 …result = usrsctp_setsockopt(socket_client, IPPROTO_SCTP, SCTP_ENABLE_STREAM_RESET, &assoc_val, siz… in LLVMFuzzerTestOneInput() 329 …result = usrsctp_setsockopt(socket_client, IPPROTO_SCTP, SCTP_FRAGMENT_INTERLEAVE, &optval, sizeof… in LLVMFuzzerTestOneInput() 334 …result = usrsctp_setsockopt(socket_client, IPPROTO_SCTP, SCTP_INTERLEAVING_SUPPORTED, &assoc_val, … in LLVMFuzzerTestOneInput() 352 result = usrsctp_setsockopt(socket_client, IPPROTO_SCTP, SCTP_NODELAY, &optval, sizeof(optval)); in LLVMFuzzerTestOneInput() 406 …result = usrsctp_setsockopt(socket_client, IPPROTO_SCTP, SCTP_RESET_STREAMS, &srs, sizeof(struct s… in LLVMFuzzerTestOneInput()
|
/external/usrsctp/programs/ |
D | discard_server_upcall.c | 168 if ((sock = usrsctp_socket(AF_INET6, SOCK_SEQPACKET, IPPROTO_SCTP, NULL, NULL, 0, NULL)) == NULL) { in main() 172 …if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_I_WANT_MAPPED_V4_ADDR, (const void*)&on, (socklen_… in main() 179 …if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_CONTEXT, (const void*)&av, (socklen_t)sizeof(struc… in main() 182 if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_RECVRCVINFO, &on, sizeof(int)) < 0) { in main() 189 …if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_REMOTE_UDP_ENCAPS_PORT, (const void*)&encaps, (soc… in main() 198 if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_EVENT, &event, sizeof(struct sctp_event)) < 0) { in main()
|
D | discard_server.c | 154 …if ((sock = usrsctp_socket(AF_INET6, SOCK_SEQPACKET, IPPROTO_SCTP, use_cb?receive_cb:NULL, NULL, 0… 157 …if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_I_WANT_MAPPED_V4_ADDR, (const void*)&on, (socklen_… 164 …if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_CONTEXT, (const void*)&av, (socklen_t)sizeof(struc… 167 if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_RECVRCVINFO, &on, sizeof(int)) < 0) { 174 …if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_REMOTE_UDP_ENCAPS_PORT, (const void*)&encaps, (soc… 183 if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_EVENT, &event, sizeof(struct sctp_event)) < 0) {
|
D | echo_server_upcall.c | 185 if ((sock = usrsctp_socket(AF_INET6, SOCK_SEQPACKET, IPPROTO_SCTP, NULL, NULL, 0, NULL)) == NULL) { in main() 189 …if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_I_WANT_MAPPED_V4_ADDR, (const void*)&on, (socklen_… in main() 196 …if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_CONTEXT, (const void*)&av, (socklen_t)sizeof(struc… in main() 199 if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_RECVRCVINFO, &on, sizeof(int)) < 0) { in main() 206 …if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_REMOTE_UDP_ENCAPS_PORT, (const void*)&encaps, (soc… in main() 215 if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_EVENT, &event, sizeof(struct sctp_event)) < 0) { in main()
|
D | chargen_server_upcall.c | 172 …if ((listening_socket = usrsctp_socket(AF_INET6, SOCK_STREAM, IPPROTO_SCTP, NULL, NULL, 0, NULL)) … in main() 176 …if (usrsctp_setsockopt(listening_socket, IPPROTO_SCTP, SCTP_I_WANT_MAPPED_V4_ADDR, (const void*)&o… in main() 183 …if (usrsctp_setsockopt(listening_socket, IPPROTO_SCTP, SCTP_CONTEXT, (const void*)&av, (socklen_t)… in main() 186 if (usrsctp_setsockopt(listening_socket, IPPROTO_SCTP, SCTP_RECVRCVINFO, &on, sizeof(int)) < 0) { in main() 193 …if (usrsctp_setsockopt(listening_socket, IPPROTO_SCTP, SCTP_REMOTE_UDP_ENCAPS_PORT, (const void*)&… in main()
|
D | echo_server.c | 169 …if ((sock = usrsctp_socket(AF_INET6, SOCK_SEQPACKET, IPPROTO_SCTP, use_cb?receive_cb:NULL, NULL, 0… 172 …if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_I_WANT_MAPPED_V4_ADDR, (const void*)&on, (socklen_… 179 …if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_CONTEXT, (const void*)&av, (socklen_t)sizeof(struc… 182 if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_RECVRCVINFO, &on, sizeof(int)) < 0) { 189 …if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_REMOTE_UDP_ENCAPS_PORT, (const void*)&encaps, (soc… 198 if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_EVENT, &event, sizeof(struct sctp_event)) < 0) {
|
D | http_client.c | 174 …if ((sock = usrsctp_socket(address_family, SOCK_STREAM, IPPROTO_SCTP, receive_cb, NULL, 0, NULL)) … 185 if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_EVENT, &event, sizeof(event)) < 0) { 194 …if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_RTOINFO, (const void *)&rtoinfo, (socklen_t)sizeof… 204 …if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_INITMSG, (const void *)&initmsg, (socklen_t)sizeof… 249 …if (usrsctp_setsockopt(sock, IPPROTO_SCTP, SCTP_REMOTE_UDP_ENCAPS_PORT, (const void *)&encaps, (so…
|
D | tsctp.c | 578 …if (!(psock = usrsctp_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP, client_receive_cb, send_cb, lengt… 583 if (!(psock = usrsctp_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP, NULL, NULL, 0, NULL))) { 590 …if (!(psock = usrsctp_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP, server_receive_cb, NULL, 0, NULL)… 595 if (!(psock = usrsctp_socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP, NULL, NULL, 0, NULL))) { 607 …if (usrsctp_setsockopt(psock, IPPROTO_SCTP, SCTP_ADAPTATION_LAYER, (const void*)&ind, (socklen_t)s… 672 …if (usrsctp_setsockopt(psock, IPPROTO_SCTP, SCTP_REMOTE_UDP_ENCAPS_PORT, (const void*)&encaps, (so… 692 usrsctp_setsockopt(psock, IPPROTO_SCTP, SCTP_NODELAY, &optval, sizeof(int)); 697 …if (usrsctp_setsockopt(psock, IPPROTO_SCTP, SCTP_MAXSEG, &av, sizeof(struct sctp_assoc_value)) < 0…
|
/external/ltp/testcases/kernel/syscalls/sendto/ |
D | sendto02.c | 29 #ifndef IPPROTO_SCTP 30 # define IPPROTO_SCTP 132 macro 38 sockfd = socket(AF_INET, SOCK_STREAM, IPPROTO_SCTP); in setup()
|
/external/strace/xlat/ |
D | inet_protocols.h | 195 #if defined(IPPROTO_SCTP) || (defined(HAVE_DECL_IPPROTO_SCTP) && HAVE_DECL_IPPROTO_SCTP) 197 static_assert((IPPROTO_SCTP) == (132), "IPPROTO_SCTP != 132"); 200 # define IPPROTO_SCTP 132 271 XLAT(IPPROTO_SCTP),
|
/external/libnetfilter_conntrack/include/internal/ |
D | internal.h | 31 #ifndef IPPROTO_SCTP 32 #define IPPROTO_SCTP 132 macro
|
/external/tcpdump/ |
D | ipproto.h | 141 #ifndef IPPROTO_SCTP 142 #define IPPROTO_SCTP 132 macro
|