Home | History | Annotate | Download | only in iputils

Lines Matching full:setsockopt

163 			    (setsockopt(icmp_sock, IPPROTO_IP, IP_TOS,
333 rc = setsockopt(probe_fd, SOL_SOCKET, SO_BINDTODEVICE, device, strlen(device)+1);
345 if (setsockopt(probe_fd, SOL_IP, IP_MULTICAST_IF, &imr, sizeof(imr)) == -1) {
357 setsockopt(probe_fd, IPPROTO_IP, IP_TOS, (char *)&settos, sizeof(int)) < 0)
373 if (setsockopt(probe_fd, SOL_SOCKET, SO_BROADCAST,
458 if (setsockopt(icmp_sock, SOL_IP, IP_MTU_DISCOVER, &pmtudisc, sizeof(pmtudisc)) == -1) {
478 if (setsockopt(icmp_sock, SOL_RAW, ICMP_FILTER, (char*)&filt, sizeof(filt)) == -1)
479 perror("WARNING: setsockopt(ICMP_FILTER)");
483 if (setsockopt(icmp_sock, SOL_IP, IP_RECVERR, (char *)&hold, sizeof(hold)))
486 if (setsockopt(icmp_sock, SOL_IP, IP_RECVTTL, (char *)&hold, sizeof(hold)))
487 perror("WARNING: setsockopt(IP_RECVTTL)");
488 if (setsockopt(icmp_sock, SOL_IP, IP_RETOPTS, (char *)&hold, sizeof(hold)))
489 perror("WARNING: setsockopt(IP_RETOPTS)");
500 if (setsockopt(icmp_sock, IPPROTO_IP, IP_OPTIONS, rspace, sizeof(rspace)) < 0) {
517 if (setsockopt(icmp_sock, IPPROTO_IP, IP_OPTIONS, rspace, rspace[1]) < 0) {
519 if (setsockopt(icmp_sock, IPPROTO_IP, IP_OPTIONS, rspace, rspace[1]) < 0) {
537 if (setsockopt(icmp_sock, IPPROTO_IP, IP_OPTIONS, rspace, 4 + nroute*4) < 0) {
551 if (setsockopt(icmp_sock, SOL_SOCKET, SO_BROADCAST,
560 if (setsockopt(icmp_sock, IPPROTO_IP, IP_MULTICAST_LOOP,
568 if (setsockopt(icmp_sock, IPPROTO_IP, IP_MULTICAST_TTL,
573 if (setsockopt(icmp_sock, IPPROTO_IP, IP_TTL,
688 if (setsockopt(icmp_sock, SOL_RAW, ICMP_FILTER, (char*)&filt, sizeof(filt)) == -1)
689 perror("\rWARNING: setsockopt(ICMP_FILTER)");
1397 if (setsockopt(icmp_sock, SOL_SOCKET, SO_ATTACH_FILTER, &filter, sizeof(filter)))