Home
last modified time | relevance | path

Searched refs:bind_addr (Results 1 – 20 of 20) sorted by relevance

/third_party/ltp/utils/sctp/func_tests/
Dtest_1_to_1_socket_bind_listen.c92 struct sockaddr_in bind_addr; in main() local
138 bind_addr.sin_family = AF_INET; in main()
139 bind_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
140 bind_addr.sin_port = htons(SCTP_TESTPORT_1); in main()
142 error = bind(sk, (struct sockaddr *) &bind_addr, sizeof(bind_addr)-2); in main()
155 error = bind(fd, (struct sockaddr *) &bind_addr, sizeof(bind_addr)); in main()
168 bind_addr.sin_addr.s_addr = inet_addr(SCTP_INV_LOOPBACK); in main()
169 error = bind(sk, (struct sockaddr *) &bind_addr, sizeof(bind_addr)); in main()
178 bind_addr.sin_addr.s_addr = SCTP_IP_LOOPBACK; in main()
180 test_bind(sk, (struct sockaddr *) &bind_addr, sizeof(bind_addr)); in main()
[all …]
/third_party/ltp/testcases/kernel/syscalls/connect/
Dconnect02.c40 static struct sockaddr_in6 bind_addr; variable
46 socklen_t size = sizeof(bind_addr); in setup()
48 tst_init_sockaddr_inet6_bin(&bind_addr, &in6addr_any, 0); in setup()
54 SAFE_BIND(listenfd, (struct sockaddr *)&bind_addr, sizeof(bind_addr)); in setup()
56 SAFE_GETSOCKNAME(listenfd, (struct sockaddr *)&bind_addr, &size); in setup()
58 htons(bind_addr.sin6_port)); in setup()
/third_party/ltp/testcases/kernel/syscalls/sendto/
Dsendto03.c38 static struct sockaddr_ll bind_addr, addr; variable
63 bind_addr.sll_family = AF_PACKET; in setup()
64 bind_addr.sll_protocol = htons(ETH_P_ALL); in setup()
65 bind_addr.sll_ifindex = ifr.ifr_ifindex; in setup()
174 SAFE_BIND(dst_sock, (struct sockaddr *)&bind_addr, sizeof(addr)); in check_vnet_hdr()
/third_party/gstreamer/gstplugins_good/gst/udp/
Dgstdynudpsink.c430 GSocketAddress *bind_addr; in gst_dynudpsink_start() local
454 bind_addr = g_inet_socket_address_new (bind_iaddr, udpsink->bind_port); in gst_dynudpsink_start()
456 family = g_socket_address_get_family (G_SOCKET_ADDRESS (bind_addr)); in gst_dynudpsink_start()
461 g_object_unref (bind_addr); in gst_dynudpsink_start()
465 g_socket_bind (udpsink->used_socket, bind_addr, TRUE, &err); in gst_dynudpsink_start()
475 bind_addr = g_inet_socket_address_new (bind_iaddr, 0); in gst_dynudpsink_start()
476 g_socket_bind (udpsink->used_socket, bind_addr, TRUE, &err); in gst_dynudpsink_start()
477 g_object_unref (bind_addr); in gst_dynudpsink_start()
490 bind_addr = g_inet_socket_address_new (bind_iaddr, 0); in gst_dynudpsink_start()
491 g_socket_bind (udpsink->used_socket_v6, bind_addr, TRUE, &err); in gst_dynudpsink_start()
[all …]
Dgstmultiudpsink.c1274 GSocketAddress *bind_addr; in gst_multiudpsink_start() local
1298 bind_addr = g_inet_socket_address_new (bind_iaddr, sink->bind_port); in gst_multiudpsink_start()
1300 family = g_socket_address_get_family (G_SOCKET_ADDRESS (bind_addr)); in gst_multiudpsink_start()
1305 g_object_unref (bind_addr); in gst_multiudpsink_start()
1309 g_socket_bind (sink->used_socket, bind_addr, TRUE, &err); in gst_multiudpsink_start()
1310 g_object_unref (bind_addr); in gst_multiudpsink_start()
1320 bind_addr = g_inet_socket_address_new (bind_iaddr, sink->bind_port); in gst_multiudpsink_start()
1321 g_socket_bind (sink->used_socket, bind_addr, TRUE, &err); in gst_multiudpsink_start()
1322 g_object_unref (bind_addr); in gst_multiudpsink_start()
1335 bind_addr = g_inet_socket_address_new (bind_iaddr, sink->bind_port); in gst_multiudpsink_start()
[all …]
Dgstudpsrc.c1517 GInetAddress *addr, *bind_addr; in gst_udpsrc_open() local
1550 bind_addr = g_inet_address_new_any (g_inet_address_get_family (addr)); in gst_udpsrc_open()
1552 bind_addr = G_INET_ADDRESS (g_object_ref (addr)); in gst_udpsrc_open()
1556 bind_saddr = g_inet_socket_address_new (bind_addr, src->port); in gst_udpsrc_open()
1557 g_object_unref (bind_addr); in gst_udpsrc_open()
/third_party/libuv/docs/code/cgi/
Dmain.c72 struct sockaddr_in bind_addr; in main() local
73 uv_ip4_addr("0.0.0.0", 7000, &bind_addr); in main()
74 uv_tcp_bind(&server, (const struct sockaddr *)&bind_addr, 0); in main()
/third_party/libuv/docs/code/multi-echo-server/
Dmain.c105 struct sockaddr_in bind_addr; in main() local
106 uv_ip4_addr("0.0.0.0", 7000, &bind_addr); in main()
107 uv_tcp_bind(&server, (const struct sockaddr *)&bind_addr, 0); in main()
/third_party/libuv/src/win/
Dudp.c1058 const struct sockaddr* bind_addr; in uv__udp_connect() local
1063 bind_addr = (const struct sockaddr*) &uv_addr_ip4_any_; in uv__udp_connect()
1065 bind_addr = (const struct sockaddr*) &uv_addr_ip6_any_; in uv__udp_connect()
1069 err = uv__udp_maybe_bind(handle, bind_addr, addrlen, 0); in uv__udp_connect()
1109 const struct sockaddr* bind_addr; in uv__udp_send() local
1114 bind_addr = (const struct sockaddr*) &uv_addr_ip4_any_; in uv__udp_send()
1116 bind_addr = (const struct sockaddr*) &uv_addr_ip6_any_; in uv__udp_send()
1120 err = uv__udp_maybe_bind(handle, bind_addr, addrlen, 0); in uv__udp_send()
1139 const struct sockaddr* bind_addr; in uv__udp_try_send() local
1157 bind_addr = (const struct sockaddr*) &uv_addr_ip4_any_; in uv__udp_try_send()
[all …]
Dtcp.c789 const struct sockaddr* bind_addr; in uv__tcp_try_connect() local
804 bind_addr = (const struct sockaddr*) &uv_addr_ip4_any_; in uv__tcp_try_connect()
806 bind_addr = (const struct sockaddr*) &uv_addr_ip6_any_; in uv__tcp_try_connect()
810 err = uv__tcp_try_bind(handle, bind_addr, addrlen, 0); in uv__tcp_try_connect()
/third_party/libcoap/examples/
Dcoap-client.c1319 coap_address_t *bind_addr, in open_session() argument
1333 session = coap_new_client_session_pki(ctx, bind_addr, dst, proto, dtls_pki); in open_session()
1339 session = coap_new_client_session_psk2(ctx, bind_addr, dst, proto, in open_session()
1345 session = coap_new_client_session_pki(ctx, bind_addr, dst, proto, dtls_pki); in open_session()
1350 session = coap_new_client_session(ctx, bind_addr, dst, proto); in open_session()
1387 coap_address_t bind_addr; in get_session() local
1388 if ( rp->ai_addrlen <= (socklen_t)sizeof( bind_addr.addr ) ) { in get_session()
1389 coap_address_init( &bind_addr ); in get_session()
1390 bind_addr.size = (socklen_t)rp->ai_addrlen; in get_session()
1391 memcpy( &bind_addr.addr, rp->ai_addr, rp->ai_addrlen ); in get_session()
[all …]
/third_party/gstreamer/gstplugins_bad/ext/srt/
Dgstsrtobject.c1070 GSocketAddress *bind_addr = NULL; in gst_srt_object_wait_connect() local
1083 bind_addr = in gst_srt_object_wait_connect()
1086 if (!bind_addr) { in gst_srt_object_wait_connect()
1090 bind_sa_len = g_socket_address_get_native_size (bind_addr); in gst_srt_object_wait_connect()
1093 if (!g_socket_address_to_native (bind_addr, bind_sa, bind_sa_len, error)) { in gst_srt_object_wait_connect()
1097 g_clear_object (&bind_addr); in gst_srt_object_wait_connect()
1162 g_clear_object (&bind_addr); in gst_srt_object_wait_connect()
1232 GSocketAddress *bind_addr = in gst_srt_object_connect() local
1236 if (!bind_addr) { in gst_srt_object_connect()
1240 bind_sa_len = g_socket_address_get_native_size (bind_addr); in gst_srt_object_connect()
[all …]
/third_party/libcoap/src/
Dcoap_io_riot.c247 if ((get_port(&ep->bind_addr) == udp_hdr->dst_port.u16) && in coap_io_process()
248 (address_equals(&ep->bind_addr, &ip6_hdr->dst))) { in coap_io_process()
253 sock->fd, ntohs(get_port(&ep->bind_addr))); in coap_io_process()
Dcoap_io.c394 coap_address_t bind_addr; local
396 coap_address_init(&bind_addr);
397 bind_addr.addr.sa.sa_family = connect_addr.addr.sa.sa_family;
398 if (bind(sock->fd, &bind_addr.addr.sa,
399 bind_addr.addr.sa.sa_family == AF_INET ?
401 (socklen_t)bind_addr.size) == COAP_SOCKET_ERROR) {
Dcoap_session.c1342 if (!coap_socket_bind_udp(&ep->sock, listen_addr, &ep->bind_addr)) in coap_new_endpoint()
1347 if (!coap_socket_bind_tcp(&ep->sock, listen_addr, &ep->bind_addr)) in coap_new_endpoint()
1362 if (coap_print_addr(&ep->bind_addr, addr_str, INET6_ADDRSTRLEN + 8)) { in coap_new_endpoint()
1493 if (coap_print_addr(&endpoint->bind_addr, (unsigned char*)p, end - p) > 0) in coap_endpoint_str()
Dnet.c1703 coap_address_copy(&packet->addr_info.local, &endpoint->bind_addr); in coap_read_endpoint()
3428 if(endpoint->bind_addr.addr.sa.sa_family == AF_INET6) { in coap_join_mcast_group_intf()
3434 endpoint->bind_addr.addr.sin6.sin6_scope_id; in coap_join_mcast_group_intf()
3441 gaddr.addr.sin6.sin6_port = endpoint->bind_addr.addr.sin6.sin6_port; in coap_join_mcast_group_intf()
3449 if(endpoint->bind_addr.addr.sa.sa_family == AF_INET) { in coap_join_mcast_group_intf()
3454 mreq4.imr_interface = endpoint->bind_addr.addr.sin.sin_addr; in coap_join_mcast_group_intf()
3461 gaddr.addr.sin.sin_port = endpoint->bind_addr.addr.sin.sin_port; in coap_join_mcast_group_intf()
/third_party/gstreamer/gstreamer/libs/gst/helpers/
Dgst-ptp-helper.c216 GInetAddress *bind_addr, *mcast_addr; in setup_sockets() local
238 bind_addr = g_inet_address_new_any (G_SOCKET_FAMILY_IPV4); in setup_sockets()
239 bind_saddr = g_inet_socket_address_new (bind_addr, PTP_EVENT_PORT); in setup_sockets()
243 bind_saddr = g_inet_socket_address_new (bind_addr, PTP_GENERAL_PORT); in setup_sockets()
247 g_object_unref (bind_addr); in setup_sockets()
/third_party/libuv/test/
Dtest-poll.c103 static uv_os_sock_t create_bound_socket (struct sockaddr_in bind_addr) { in create_bound_socket() argument
123 r = bind(sock, (const struct sockaddr*) &bind_addr, sizeof bind_addr); in create_bound_socket()
/third_party/libcoap/include/coap3/
Dcoap_session_internal.h143 coap_address_t bind_addr; /**< local interface address */ member
/third_party/mesa3d/src/intel/vulkan/
Danv_descriptor_set.c1481 struct anv_address bind_addr = anv_address_add(buffer->address, offset); in anv_descriptor_set_write_buffer() local
1506 bview->address = bind_addr; in anv_descriptor_set_write_buffer()
1523 bind_addr, bind_range, 1); in anv_descriptor_set_write_buffer()
1533 .address = anv_address_physical(bind_addr), in anv_descriptor_set_write_buffer()