Searched refs:sctp_sock (Results 1 – 1 of 1) sorted by relevance
/external/honggfuzz/examples/linux_kernel_ip/ |
D | tun.c | 96 int sctp_sock = socket(AF_INET, SOCK_SEQPACKET, IPPROTO_SCTP); in main() local 97 if (sctp_sock == -1) { in main() 114 if (setsockopt(sctp_sock, SOL_SOCKET, SO_NO_CHECK, (void*)&disable, sizeof(disable)) == -1) { in main() 152 if (bind(sctp_sock, (struct sockaddr*)&addr, sizeof(addr)) == -1) { in main() 167 if (fcntl(sctp_sock, F_SETFL, O_NONBLOCK | O_RDWR) == -1) { in main() 177 if (listen(sctp_sock, SOMAXCONN) == -1) { in main() 233 … if (recvfrom(sctp_sock, b, sizeof(b), MSG_DONTWAIT, (struct sockaddr*)&addr, &slen) > 0) { in main() 234 sendto(sctp_sock, b, 1, MSG_NOSIGNAL | MSG_DONTWAIT, (struct sockaddr*)&addr, slen); in main()
|