Home
last modified time | relevance | path

Searched refs:udp_sock (Results 1 – 3 of 3) sorted by relevance

/external/wpa_supplicant_8/src/ap/
Diapp.c169 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()
390 iapp->udp_sock = iapp->packet_sock = -1; in iapp_init()
396 iapp->udp_sock = socket(PF_INET, SOCK_DGRAM, 0); in iapp_init()
397 if (iapp->udp_sock < 0) { in iapp_init()
406 if (ioctl(iapp->udp_sock, SIOCGIFINDEX, &ifr) != 0) { in iapp_init()
414 if (ioctl(iapp->udp_sock, SIOCGIFADDR, &ifr) != 0) { in iapp_init()
429 if (ioctl(iapp->udp_sock, SIOCGIFBRDADDR, &ifr) != 0) { in iapp_init()
448 if (setsockopt(iapp->udp_sock, SOL_SOCKET, SO_REUSEADDR, &reuseaddr, in iapp_init()
[all …]
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_tpacket.c237 int udp_sock[2]; in walk_v1_v2_rx() local
243 pair_udp_open(udp_sock, PORT_BASE); in walk_v1_v2_rx()
251 pair_udp_send(udp_sock, NUM_PACKETS); in walk_v1_v2_rx()
283 pair_udp_close(udp_sock); in walk_v1_v2_rx()
546 int udp_sock[2]; in walk_v3_rx() local
550 pair_udp_open(udp_sock, PORT_BASE); in walk_v3_rx()
558 pair_udp_send(udp_sock, NUM_PACKETS); in walk_v3_rx()
572 pair_udp_close(udp_sock); in walk_v3_rx()
/external/iproute2/misc/
Darpd.c65 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()