Home | History | Annotate | Download | only in iputils

Lines Matching defs:icmp_sock

167 static int icmp_sock;
721 icmp_sock = socket(AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6);
722 if (icmp_sock < 0) {
724 icmp_sock = socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6);
1036 if (icmp_sock < 0) {
1073 if (setsockopt(icmp_sock, SOL_IPV6, IPV6_MTU_DISCOVER, &pmtudisc, sizeof(pmtudisc)) == -1) {
1080 bind(icmp_sock, (struct sockaddr*)&source, sizeof(source)) == -1) {
1097 if (setsockopt(icmp_sock, SOL_IPV6, IPV6_RECVERR, (char *)&hold, sizeof(hold))) {
1106 sock_setbufs(icmp_sock, hold);
1113 err = setsockopt(icmp_sock, SOL_RAW, IPV6_CHECKSUM,
1142 err = setsockopt(icmp_sock, IPPROTO_ICMPV6, ICMP6_FILTER,
1153 if (setsockopt(icmp_sock, IPPROTO_IPV6, IPV6_MULTICAST_LOOP,
1160 if (setsockopt(icmp_sock, IPPROTO_IPV6, IPV6_MULTICAST_HOPS,
1165 if (setsockopt(icmp_sock, IPPROTO_IPV6, IPV6_UNICAST_HOPS,
1176 setsockopt(icmp_sock, IPPROTO_IPV6, IPV6_RECVHOPLIMIT,
1178 setsockopt(icmp_sock, IPPROTO_IPV6, IPV6_2292HOPLIMIT,
1181 setsockopt(icmp_sock, IPPROTO_IPV6, IPV6_HOPLIMIT,
1192 if (setsockopt(icmp_sock, IPPROTO_IPV6, IPV6_TCLASS,
1224 if (setsockopt(icmp_sock, IPPROTO_IPV6, IPV6_FLOWLABEL_MGR,
1243 if (setsockopt(icmp_sock, IPPROTO_IPV6, IPV6_FLOWINFO_SEND,
1263 setup(icmp_sock);
1267 main_loop(icmp_sock, packet, packlen);
1294 res = recvmsg(icmp_sock, &msg, MSG_ERRQUEUE|MSG_DONTWAIT);
1415 cc = sendto(icmp_sock, (char *)outpack, len, confirm,
1433 cc = sendmsg(icmp_sock, &mhdr, confirm);
1800 if (setsockopt(icmp_sock, SOL_SOCKET, SO_ATTACH_FILTER, &filter, sizeof(filter)))