Lines Matching refs:icmp_sock
302 int icmp_sock; /* receive (icmp) socket file descriptor */ variable
346 icmp_sock = socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6); in main()
493 if (icmp_sock < 0) { in main()
500 setsockopt(icmp_sock, SOL_IPV6, IPV6_RECVPKTINFO, &on, sizeof(on)); in main()
501 setsockopt(icmp_sock, SOL_IPV6, IPV6_2292PKTINFO, &on, sizeof(on)); in main()
503 setsockopt(icmp_sock, SOL_IPV6, IPV6_PKTINFO, &on, sizeof(on)); in main()
507 setsockopt(icmp_sock, SOL_SOCKET, SO_DEBUG, in main()
510 setsockopt(icmp_sock, SOL_SOCKET, SO_DONTROUTE, in main()
515 if (setsockopt(icmp_sock, SOL_RAW, IPV6_CHECKSUM, &on, sizeof(on)) < 0) { in main()
580 if (bind(icmp_sock, (struct sockaddr *)&saddr, sizeof(saddr)) < 0) { in main()
609 while ((cc = wait_for_reply(icmp_sock, &from, &to, reset_timer)) != 0) { in main()
700 cc = recvmsg(icmp_sock, &msg, 0);