Searched refs:udp_sock (Results 1 – 2 of 2) sorted by relevance
/external/wpa_supplicant_8/src/ap/ |
D | iapp.c | 169 int udp_sock; member 201 if (sendto(iapp->udp_sock, buf, (char *) (add + 1) - buf, 0, in iapp_send_add() 315 len = recvfrom(iapp->udp_sock, buf, sizeof(buf), 0, in iapp_receive_udp() 389 iapp->udp_sock = iapp->packet_sock = -1; in iapp_init() 395 iapp->udp_sock = socket(PF_INET, SOCK_DGRAM, 0); in iapp_init() 396 if (iapp->udp_sock < 0) { in iapp_init() 405 if (ioctl(iapp->udp_sock, SIOCGIFINDEX, &ifr) != 0) { in iapp_init() 413 if (ioctl(iapp->udp_sock, SIOCGIFADDR, &ifr) != 0) { in iapp_init() 428 if (ioctl(iapp->udp_sock, SIOCGIFBRDADDR, &ifr) != 0) { in iapp_init() 446 if (bind(iapp->udp_sock, (struct sockaddr *) &uaddr, in iapp_init() [all …]
|
/external/iproute2/misc/ |
D | arpd.c | 65 int udp_sock = -1; variable 194 if (ioctl(udp_sock, SIOCGIFNAME, &ifr)) in send_probe() 196 if (ioctl(udp_sock, SIOCGIFHWADDR, &ifr)) in send_probe() 200 if (setsockopt(udp_sock, SOL_SOCKET, SO_BINDTODEVICE, ifr.ifr_name, strlen(ifr.ifr_name)+1) < 0) in send_probe() 206 if (connect(udp_sock, (struct sockaddr*)&dst, sizeof(dst)) < 0) in send_probe() 209 if (getsockname(udp_sock, (struct sockaddr*)&dst, &len) < 0) in send_probe() 664 if ((udp_sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { in main() 675 if (ioctl(udp_sock, SIOCGIFINDEX, &ifr)) { in main()
|