Home
last modified time | relevance | path

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

12

/system/nfc/src/gki/common/
Dgki_inet.h24 #define ntohs(n) (n) macro
31 extern uint16_t ntohs(uint16_t n);
/system/netd/server/
DWakeupController.cpp60 args.srcPort = ntohs(header.th_sport); in extractIpPorts()
61 args.dstPort = ntohs(header.th_dport); in extractIpPorts()
69 args.srcPort = ntohs(header.uh_sport); in extractIpPorts()
70 args.dstPort = ntohs(header.uh_dport); in extractIpPorts()
159 size_t hwAddrLen = ntohs(hwaddr.hw_addrlen); in init()
167 args.ethertype = ntohs(packetHdr.hw_protocol); in init()
DTcpSocketMonitor.cpp93 ntohs(sockinfo->id.idiag_sport), in tcpInfoPrint()
94 ntohs(sockinfo->id.idiag_dport), in tcpInfoPrint()
DNFLogListenerTest.cpp120 EXPECT_EQ(kType, ntohs(nfmsg.res_id)); in TEST_F()
DSockDiagTest.cpp108 port, ntohs(client46.sin6_port), ntohs(client6.sin6_port)); in TEST_F()
DNFLogListener.cpp151 const auto& fn = findWithDefault(mDispatchMap, ntohs(nfmsg.res_id), kDefaultDispatchFn); in NFLogListener()
DMDnsSdListener.cpp257 port = ntohs(port); in MDnsSdListenerResolveCallback()
/system/core/libnetutils/
Dpacket.c185 } else if (nread < ntohs(packet.ip.tot_len)) { in receive_packet()
187 ALOGD("Packet was truncated (read %d, needed %d)", nread, ntohs(packet.ip.tot_len)); in receive_packet()
195 ALOGD("UDP dest port (%d) is not DHCP client", ntohs(packet.udp.dest)); in receive_packet()
217 dhcp_size = ntohs(packet.udp.len) - sizeof(packet.udp); in receive_packet()
234 nread = ntohs(packet.ip.tot_len); in receive_packet()
Ddhcpclient.c272 ntohl(msg->xid), ntohs(msg->secs), ntohs(msg->flags), len); in dump_dhcp_msg()
/system/netd/bpf_progs/
Dclatd.c62 if (ntohs(ip6->payload_len) > 0xFFFF - sizeof(struct iphdr)) return TC_ACT_OK; in nat64()
100 .tot_len = htons(ntohs(ip6->payload_len) + sizeof(struct iphdr)), // u16 in nat64()
226 if (ntohs(ip4->tot_len) < sizeof(*ip4)) return TC_ACT_OK; in sched_cls_egress_clat_rawip()
270 .payload_len = htons(ntohs(ip4->tot_len) - 20), // __be16 in sched_cls_egress_clat_rawip()
Doffload.c148 bpf_csum_update(skb, 0xFFFF - ntohs(old_hl) + ntohs(new_hl)); in do_forward()
Dbpf_net_helpers.h53 #define ntohs(x) htons(x) macro
/system/core/libcutils/
Dsockets.cpp40 return ntohs(reinterpret_cast<sockaddr_in*>(&addr)->sin_port); in socket_get_local_port()
/system/netd/libnetdutils/
DNetfilter.cpp28 << static_cast<int>(msg.version) << ", res_id: 0x" << ntohs(msg.res_id) << "]" in operator <<()
/system/libbase/include/android-base/
Dendian.h60 #define ntohs(x) __builtin_bswap16(x) macro
/system/libbase/
Dendian_test.cpp42 ASSERT_EQ(le16, ntohs(be16)); in TEST()
/system/netd/tests/
Dsock_diag_test.cpp99 port, ntohs(client46.sin6_port), ntohs(client6.sin6_port)); in TEST_F()
/system/extras/tests/tcp_nuke_addr/
Dtcp_nuke_addr_test.cpp135 printf("Using address %s:%d\n", inet_ntoa(sin.sin_addr), ntohs(sin.sin_port)); in main()
/system/core/libutils/
DUnicode.cpp33 # define ntohs(x) ( (((x) << 8) & 0xff00) | (((x) >> 8) & 255) ) macro
34 # define htons(x) ntohs(x)
/system/netd/tests/benchmarks/
Dconnect_benchmark.cpp93 return ntohs(sin.sin_port); in bindAndListen()
/system/netd/libnetdutils/include/netdutils/
DInternetAddresses.h274 : IPSockAddr(IPAddress(ipv4sa.sin_addr), ntohs(ipv4sa.sin_port)) {} in IPSockAddr()
276 : IPSockAddr(IPAddress(ipv6sa.sin6_addr, ipv6sa.sin6_scope_id), ntohs(ipv6sa.sin6_port)) {} in IPSockAddr()
/system/bt/btif/src/
Dbtif_pan.cc545 uint16_t proto = ntohs(hdr->h_proto); in should_forward()
562 ntohs(eth_hdr->h_proto), hdr, 0); in forward_bnep()
/system/update_engine/
Dtest_http_server.cc636 in_port_t port = ntohs(bound_addr.sin_port); in main()
/system/core/adb/client/
Dtransport_mdns.cpp578 interfaceIndex, hosttarget, ntohs(port), serviceVersion); in register_resolved_mdns_service()
/system/core/adb/
Dsysdeps_win32.cpp835 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), in network_loopback_client()
898 ntohs(addr.sin_port), in _network_server()
1155 return ntohs(reinterpret_cast<sockaddr_in*>(&addr_storage)->sin_port); in adb_socket_get_local_port()

12