Searched refs:probe_fd (Results 1 – 1 of 1) sorted by relevance
/external/ping/ |
D | ping.c | 1865 int probe_fd = socket(AF_INET, SOCK_DGRAM, 0); in main() local 1867 if (probe_fd < 0) { in main() 1875 if (setsockopt(probe_fd, SOL_SOCKET, SO_BINDTODEVICE, device, strlen(device)+1) == -1) { in main() 1878 if (ioctl(probe_fd, SIOCGIFINDEX, &ifr) < 0) { in main() 1884 if (setsockopt(probe_fd, SOL_IP, IP_MULTICAST_IF, &imr, sizeof(imr)) == -1) { in main() 1893 setsockopt(probe_fd, IPPROTO_IP, IP_TOS, (char *)&settos, sizeof(int)) < 0) in main() 1899 if (connect(probe_fd, (struct sockaddr*)&dst, sizeof(dst)) == -1) { in main() 1906 if (setsockopt(probe_fd, SOL_SOCKET, SO_BROADCAST, in main() 1911 if (connect(probe_fd, (struct sockaddr*)&dst, sizeof(dst)) == -1) { in main() 1921 if (getsockname(probe_fd, (struct sockaddr*)&source, &alen) == -1) { in main() [all …]
|