Home
last modified time | relevance | path

Searched refs:tcp_sock (Results 1 – 1 of 1) sorted by relevance

/external/honggfuzz/examples/linux_kernel_ip/
Dtun.c92 int tcp_sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP); in main() local
93 if (tcp_sock == -1) { in main()
109 if (setsockopt(tcp_sock, SOL_SOCKET, SO_NO_CHECK, (void*)&disable, sizeof(disable)) == -1) { in main()
113 setsockopt(tcp_sock, SOL_TCP, TCP_MD5SIG, (void*)md5s, sizeof(md5s)); in main()
124 if (ioctl(tcp_sock, SIOCSIFADDR, &ifr) == -1) { in main()
128 if (ioctl(tcp_sock, SIOCSIFDSTADDR, &ifr) == -1) { in main()
132 if (ioctl(tcp_sock, SIOCGIFFLAGS, &ifr) == -1) { in main()
136 if (ioctl(tcp_sock, SIOCSIFFLAGS, &ifr) == -1) { in main()
146 if (bind(tcp_sock, (struct sockaddr*)&addr, sizeof(addr)) == -1) { in main()
161 if (fcntl(tcp_sock, F_SETFL, O_NONBLOCK | O_RDWR) == -1) { in main()
[all …]