HomeSort by relevance Sort by last modified time
    Searched defs:icmp_sock (Results 1 - 3 of 3) sorted by null

  /external/iputils/
ping.c 92 int icmp_sock; /* socket file descriptor */ variable
143 icmp_sock = socket(AF_INET, SOCK_DGRAM, IPPROTO_ICMP);
144 if (icmp_sock < 0) {
146 icmp_sock = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
163 (setsockopt(icmp_sock, IPPROTO_IP, IP_TOS,
423 if (icmp_sock < 0) {
434 if (ioctl(icmp_sock, SIOCGIFINDEX, &ifr) < 0) {
458 if (setsockopt(icmp_sock, SOL_IP, IP_MTU_DISCOVER, &pmtudisc, sizeof(pmtudisc)) == -1) {
465 bind(icmp_sock, (struct sockaddr*)&source, sizeof(source)) == -1) {
478 if (setsockopt(icmp_sock, SOL_RAW, ICMP_FILTER, (char*)&filt, sizeof(filt)) == -1
    [all...]
traceroute6.c 302 int icmp_sock; /* receive (icmp) socket file descriptor */ variable
346 icmp_sock = socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6);
493 if (icmp_sock < 0) {
500 setsockopt(icmp_sock, SOL_IPV6, IPV6_RECVPKTINFO, &on, sizeof(on));
501 setsockopt(icmp_sock, SOL_IPV6, IPV6_2292PKTINFO, &on, sizeof(on));
503 setsockopt(icmp_sock, SOL_IPV6, IPV6_PKTINFO, &on, sizeof(on));
507 setsockopt(icmp_sock, SOL_SOCKET, SO_DEBUG,
510 setsockopt(icmp_sock, SOL_SOCKET, SO_DONTROUTE,
515 if (setsockopt(icmp_sock, SOL_RAW, IPV6_CHECKSUM, &on, sizeof(on)) < 0) {
580 if (bind(icmp_sock, (struct sockaddr *)&saddr, sizeof(saddr)) < 0)
    [all...]
ping6.c 167 static int icmp_sock; variable
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
    [all...]

Completed in 38 milliseconds