Home
last modified time | relevance | path

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

/external/flac/src/plugin_xmms/
Dhttp.c361 int udp_sock = 0; in http_connect() local
457 udp_port = udp_establish_listener (&udp_sock); in http_connect()
461 udp_sock = 0; in http_connect()
616 int udp_sock = 0; in http_buffer_loop() local
688 if (flac_cfg.stream.use_udp_channel && udp_sock != 0) in http_buffer_loop()
689 if (udp_check_for_data(udp_sock) < 0) in http_buffer_loop()
691 close(udp_sock); in http_buffer_loop()
692 udp_sock = 0; in http_buffer_loop()
703 if (udp_sock != 0) in http_buffer_loop()
704 close(udp_sock); in http_buffer_loop()
/external/iproute2/misc/
Darpd.c62 int udp_sock = -1; variable
196 if (ioctl(udp_sock, SIOCGIFNAME, &ifr)) in send_probe()
198 if (ioctl(udp_sock, SIOCGIFHWADDR, &ifr)) in send_probe()
202 if (setsockopt(udp_sock, SOL_SOCKET, SO_BINDTODEVICE, ifr.ifr_name, strlen(ifr.ifr_name)+1) < 0) in send_probe()
205 if (connect(udp_sock, (struct sockaddr *)&dst, sizeof(dst)) < 0) in send_probe()
208 if (getsockname(udp_sock, (struct sockaddr *)&dst, &len) < 0) in send_probe()
655 if ((udp_sock = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { in main()
667 if (ioctl(udp_sock, SIOCGIFINDEX, &ifr)) { in main()
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_tpacket.c226 int udp_sock[2]; in walk_v1_v2_rx() local
232 pair_udp_open(udp_sock, PORT_BASE); in walk_v1_v2_rx()
239 pair_udp_send(udp_sock, NUM_PACKETS); in walk_v1_v2_rx()
271 pair_udp_close(udp_sock); in walk_v1_v2_rx()
590 int udp_sock[2]; in walk_v3_rx() local
594 pair_udp_open(udp_sock, PORT_BASE); in walk_v3_rx()
601 pair_udp_send(udp_sock, NUM_PACKETS); in walk_v3_rx()
615 pair_udp_close(udp_sock); in walk_v3_rx()