Home
last modified time | relevance | path

Searched refs:ntohs (Results 1 – 25 of 173) sorted by relevance

1234567

/third_party/ltp/utils/sctp/testlib/
Dsctputil.h91 ntohs((addr).s6_addr16[0]), \
92 ntohs((addr).s6_addr16[1]), \
93 ntohs((addr).s6_addr16[2]), \
94 ntohs((addr).s6_addr16[3]), \
95 ntohs((addr).s6_addr16[4]), \
96 ntohs((addr).s6_addr16[5]), \
97 ntohs((addr).s6_addr16[6]), \
98 ntohs((addr).s6_addr16[7])
/third_party/musl/libc-test/src/functionalext/supplement/network/
Dgetservbyport.c30 EXPECT_EQ("getservbyport_0100", ntohs(se->s_port), TEST_GET_SEVERBY_TCP_PORT); in getservbyport_0100()
36 EXPECT_EQ("getservbyport_0100", ntohs(se->s_port), TEST_GET_SEVERBY_TCP_PORT); in getservbyport_0100()
42 EXPECT_EQ("getservbyport_0100", ntohs(se->s_port), TEST_GET_SEVERBY_UDP_PORT); in getservbyport_0100()
/third_party/musl/libc-test/src/api/
Darpa_inet.c31 #ifdef ntohs in f()
32 I(uint16_t, ntohs(0LL)) in f()
34 {uint16_t(*p)(uint16_t) = ntohs;} in f()
/third_party/toybox/toys/pending/
Ddhcp6.c306 type = ntohs(type); in get_msg_ptr()
308 length = ntohs(length); in get_msg_ptr()
313 type = ntohs(*((uint16_t*)data)); in get_msg_ptr()
314 length = ntohs(*((uint16_t*)(data+2))); in get_msg_ptr()
359 iana_len = ntohs(*((uint16_t*)(t+2))); in parse_ia_na()
367 uint16_t sub_type = ntohs(*((uint16_t*)(t))); in parse_ia_na()
371 content_len = ntohs(*((uint16_t*)(t+2))); in parse_ia_na()
391 content_len = ntohs(*((uint16_t*)(t+2))); in parse_ia_na()
392 dhcp_data.status_code = ntohs(*((uint16_t*)(t+4))); in parse_ia_na()
397 content_len = ntohs(*((uint16_t*)(t+2))); in parse_ia_na()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dfils_hlp.c26 sum += ntohs(*pos++); in ip_checksum()
28 sum += ntohs(*pos << 8); in ip_checksum()
142 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in fils_dhcp_request()
176 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), (int) res); in fils_dhcp_handler()
460 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), in fils_process_hlp_dhcp()
490 sport = ntohs(udph->uh_sport); in fils_process_hlp_udp()
491 dport = ntohs(udph->uh_dport); in fils_process_hlp_udp()
492 ulen = ntohs(udph->uh_ulen); in fils_process_hlp_udp()
495 sport, dport, ulen, ntohs(udph->uh_sum)); in fils_process_hlp_udp()
524 ip_len = ntohs(iph->ip_len); in fils_process_hlp_ip()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dfils_hlp.c26 sum += ntohs(*pos++); in ip_checksum()
28 sum += ntohs(*pos << 8); in ip_checksum()
142 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in fils_dhcp_request()
176 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), (int) res); in fils_dhcp_handler()
460 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), in fils_process_hlp_dhcp()
490 sport = ntohs(udph->uh_sport); in fils_process_hlp_udp()
491 dport = ntohs(udph->uh_dport); in fils_process_hlp_udp()
492 ulen = ntohs(udph->uh_ulen); in fils_process_hlp_udp()
495 sport, dport, ulen, ntohs(udph->uh_sum)); in fils_process_hlp_udp()
524 tot_len = ntohs(iph->tot_len); in fils_process_hlp_ip()
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_asconf.c177 aparam_length = ntohs(aph->ph.param_length); in sctp_process_asconf_add_ip()
182 param_type = ntohs(ph->param_type); in sctp_process_asconf_add_ip()
184 param_length = ntohs(ph->param_length); in sctp_process_asconf_add_ip()
341 aparam_length = ntohs(aph->ph.param_length); in sctp_process_asconf_delete_ip()
346 param_type = ntohs(ph->param_type); in sctp_process_asconf_delete_ip()
348 param_length = ntohs(ph->param_length); in sctp_process_asconf_delete_ip()
482 aparam_length = ntohs(aph->ph.param_length); in sctp_process_asconf_set_primary()
487 param_type = ntohs(ph->param_type); in sctp_process_asconf_set_primary()
489 param_length = ntohs(ph->param_length); in sctp_process_asconf_set_primary()
640 if (ntohs(cp->ch.chunk_length) < sizeof(struct sctp_asconf_chunk)) { in sctp_handle_asconf()
[all …]
Dsctp_input.c112 if (ntohs(cp->ch.chunk_length) < sizeof(struct sctp_init_chunk)) { in sctp_handle_init()
174 offset + ntohs(cp->ch.chunk_length))) { in sctp_handle_init()
331 if (asoc->pre_open_streams > ntohs(init->num_inbound_streams)) { in sctp_process_init()
338 newcnt = ntohs(init->num_inbound_streams); in sctp_process_init()
419 if (asoc->max_inbound_streams > ntohs(init->num_outbound_streams)) { in sctp_process_init()
420 asoc->streamincnt = ntohs(init->num_outbound_streams); in sctp_process_init()
525 initack_limit = offset + ntohs(cp->ch.chunk_length); in sctp_process_init_ack()
626 if (ntohs(cp->ch.chunk_length) != sizeof(struct sctp_heartbeat_chunk)) { in sctp_handle_heartbeat_ack()
861 len = ntohs(abort->ch.chunk_length); in sctp_handle_abort()
870 error = ntohs(cause->code); in sctp_handle_abort()
[all …]
/third_party/libwebsockets/lib/roles/listen/
Dops-listen.c108 ntohs(((struct sockaddr_in6 *) &filt.cli_addr)->sin6_port) : in rops_handle_POLLIN_listen()
109 ntohs(((struct sockaddr_in *) &filt.cli_addr)->sin_port)), in rops_handle_POLLIN_listen()
117 ntohs(sain.sin_port), in rops_handle_POLLIN_listen()
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dctrl_iface_udp.c101 ntohs(from->sin6_port)); in wpa_supplicant_ctrl_iface_attach()
104 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach()
132 ntohs(from->sin6_port));
138 ntohs(from->sin_port));
179 ntohs(from->sin6_port));
185 ntohs(from->sin_port));
541 ntohs(dst->addr.sin6_port));
545 ntohs(dst->addr.sin_port));
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/wps/
Dhttp_client.c62 ntohs(c->dst.sin_port)); in http_client_got_response()
68 ntohs(c->dst.sin_port)); in http_client_got_response()
93 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port), in http_client_tx_ready()
116 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port)); in http_client_tx_ready()
270 ntohs(dst.sin_port)); in http_client_url()
Dhttp_server.c50 ntohs(req->cli.sin_port)); in http_request_cb()
56 ntohs(req->cli.sin_port)); in http_request_cb()
139 ntohs(req->cli.sin_port)); in http_request_send()
214 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in http_server_cb()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/wps/
Dhttp_client.c62 ntohs(c->dst.sin_port)); in http_client_got_response()
68 ntohs(c->dst.sin_port)); in http_client_got_response()
93 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port), in http_client_tx_ready()
116 inet_ntoa(c->dst.sin_addr), ntohs(c->dst.sin_port)); in http_client_tx_ready()
270 ntohs(dst.sin_port)); in http_client_url()
Dhttp_server.c50 ntohs(req->cli.sin_port)); in http_request_cb()
56 ntohs(req->cli.sin_port)); in http_request_cb()
139 ntohs(req->cli.sin_port)); in http_request_send()
214 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in http_server_cb()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dctrl_iface_udp.c101 ntohs(from->sin6_port)); in wpa_supplicant_ctrl_iface_attach()
104 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach()
132 ntohs(from->sin6_port));
138 ntohs(from->sin_port));
179 ntohs(from->sin6_port));
185 ntohs(from->sin_port));
561 ntohs(dst->addr.sin6_port));
565 ntohs(dst->addr.sin_port));
/third_party/lwip/src/include/lwip/distributed_net/
Ddistributed_net_core.h56 …((addr)->sin_addr.s_addr == ipaddr_addr(LOCAL_SERVER_IP) && (addr)->sin_port == ntohs(get_local_ud…
58 #define IS_DNS_PORT(addr) (ntohs((addr).sin_port) == DNS_PORT)
/third_party/pulseaudio/src/pulsecore/
Dsocket-server.c534 pa_snprintf(c, l, "tcp6:%s:%u", fqdn, (unsigned) ntohs(sa.sin6_port)); in pa_socket_server_get_address()
542 pa_snprintf(c, l, "{%s}tcp6:localhost:%u", id, (unsigned) ntohs(sa.sin6_port)); in pa_socket_server_get_address()
552 pa_snprintf(c, l, "tcp6:[%s]:%u", ip, (unsigned) ntohs(sa.sin6_port)); in pa_socket_server_get_address()
573 pa_snprintf(c, l, "tcp:%s:%u", fqdn, (unsigned) ntohs(sa.sin_port)); in pa_socket_server_get_address()
580 pa_snprintf(c, l, "{%s}tcp:localhost:%u", id, (unsigned) ntohs(sa.sin_port)); in pa_socket_server_get_address()
590 pa_snprintf(c, l, "tcp:[%s]:%u", ip, (unsigned) ntohs(sa.sin_port)); in pa_socket_server_get_address()
Dohos_socket-server.c554 pa_snprintf(c, l, "tcp6:%s:%u", fqdn, (unsigned) ntohs(sa.sin6_port)); in pa_socket_server_get_address()
562 pa_snprintf(c, l, "{%s}tcp6:localhost:%u", id, (unsigned) ntohs(sa.sin6_port)); in pa_socket_server_get_address()
572 pa_snprintf(c, l, "tcp6:[%s]:%u", ip, (unsigned) ntohs(sa.sin6_port)); in pa_socket_server_get_address()
593 pa_snprintf(c, l, "tcp:%s:%u", fqdn, (unsigned) ntohs(sa.sin_port)); in pa_socket_server_get_address()
600 pa_snprintf(c, l, "{%s}tcp:localhost:%u", id, (unsigned) ntohs(sa.sin_port)); in pa_socket_server_get_address()
610 pa_snprintf(c, l, "tcp:[%s]:%u", ip, (unsigned) ntohs(sa.sin_port)); in pa_socket_server_get_address()
/third_party/node/deps/cares/src/lib/
Dares_nowarn.h55 # undef ntohs
56 # define ntohs(a) aresx_ntohs((a)) macro
/third_party/libcoap/src/
Dcoap_io_riot.c224 ntohs(get_port(&s->addr_info.local)), in coap_io_process()
225 ntohs(udp_hdr->dst_port.u16)); in coap_io_process()
232 sock->fd, ntohs(get_port(&s->addr_info.local))); in coap_io_process()
253 sock->fd, ntohs(get_port(&ep->bind_addr))); in coap_io_process()
Daddress.c36 case AF_INET: return ntohs(addr->addr.sin.sin_port); in coap_address_get_port()
37 case AF_INET6: return ntohs(addr->addr.sin6.sin6_port); in coap_address_get_port()
/third_party/ltp/lib/
Dsafe_net.c37 if (ntohs(sin->sin_port) != 0) { in tst_sock_addr()
39 ntohs(sin->sin_port)); in tst_sock_addr()
53 if (ntohs(sin6->sin6_port) != 0) { in tst_sock_addr()
55 ntohs(sin6->sin6_port)); in tst_sock_addr()
97 return ntohs(sin->sin_port); in tst_getsockport()
102 return ntohs(sin6->sin6_port); in tst_getsockport()
/third_party/rust/crates/linux-raw-sys/gen/include/
Dsupport.h32 #define ntohs(x) (x) macro
37 #define ntohs(x) (__builtin_bswap16(x)) macro
/third_party/ltp/testcases/network/sockets/
DltpServer.c250 ntohs(udpClientAddr.sin_port), message); in ltp_udp_server_queue()
291 ntohs(tcpClientAddr.sin_port), message); in ltp_tcp_server_queue()
410 ntohs(multiClientAddr.sin_port), hostname, message); in ltp_multi_server_queue()
/third_party/ltp/utils/sctp/func_tests/
Dtest_basic.c364 ntohs(in_addr->sin_port)); in main()
371 ntohs(in6_addr->sin6_port)); in main()
394 ntohs(in_addr->sin_port)); in main()
401 ntohs(in6_addr->sin6_port)); in main()

1234567