Searched refs:ntohs (Results 1 – 21 of 21) sorted by relevance
/system/nfc/src/gki/common/ |
D | gki_inet.h | 24 #define ntohs(n) (n) macro 31 extern uint16_t ntohs(uint16_t n);
|
/system/netd/server/ |
D | WakeupController.cpp | 60 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()
|
D | TcpSocketMonitor.cpp | 93 ntohs(sockinfo->id.idiag_sport), in tcpInfoPrint() 94 ntohs(sockinfo->id.idiag_dport), in tcpInfoPrint()
|
D | NFLogListenerTest.cpp | 120 EXPECT_EQ(kType, ntohs(nfmsg.res_id)); in TEST_F()
|
D | SockDiagTest.cpp | 108 port, ntohs(client46.sin6_port), ntohs(client6.sin6_port)); in TEST_F()
|
D | NFLogListener.cpp | 151 const auto& fn = findWithDefault(mDispatchMap, ntohs(nfmsg.res_id), kDefaultDispatchFn); in NFLogListener()
|
D | MDnsSdListener.cpp | 257 port = ntohs(port); in MDnsSdListenerResolveCallback()
|
/system/core/libnetutils/ |
D | packet.c | 185 } 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()
|
D | dhcpclient.c | 272 ntohl(msg->xid), ntohs(msg->secs), ntohs(msg->flags), len); in dump_dhcp_msg()
|
/system/core/libcutils/ |
D | sockets.cpp | 40 return ntohs(reinterpret_cast<sockaddr_in*>(&addr)->sin_port); in socket_get_local_port()
|
/system/netd/bpf_progs/ |
D | clatd.c | 65 if (ntohs(ip6->payload_len) > 0xFFFF - sizeof(struct iphdr)) return TC_ACT_OK; in nat64() 103 .tot_len = htons(ntohs(ip6->payload_len) + sizeof(struct iphdr)), // u16 in nat64() 229 if (ntohs(ip4->tot_len) < sizeof(*ip4)) return TC_ACT_OK; 273 .payload_len = htons(ntohs(ip4->tot_len) - 20), // __be16
|
D | bpf_net_helpers.h | 61 #define ntohs(x) htons(x) macro
|
/system/netd/libnetdutils/ |
D | Netfilter.cpp | 28 << static_cast<int>(msg.version) << ", res_id: 0x" << ntohs(msg.res_id) << "]" in operator <<()
|
/system/libbase/include/android-base/ |
D | endian.h | 60 #define ntohs(x) __builtin_bswap16(x) macro
|
/system/libbase/ |
D | endian_test.cpp | 42 ASSERT_EQ(le16, ntohs(be16)); in TEST()
|
/system/netd/tests/ |
D | sock_diag_test.cpp | 99 port, ntohs(client46.sin6_port), ntohs(client6.sin6_port)); in TEST_F()
|
/system/extras/tests/tcp_nuke_addr/ |
D | tcp_nuke_addr_test.cpp | 135 printf("Using address %s:%d\n", inet_ntoa(sin.sin_addr), ntohs(sin.sin_port)); in main()
|
/system/netd/tests/benchmarks/ |
D | connect_benchmark.cpp | 93 return ntohs(sin.sin_port); in bindAndListen()
|
/system/netd/libnetdutils/include/netdutils/ |
D | InternetAddresses.h | 274 : 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/ |
D | btif_pan.cc | 527 uint16_t proto = ntohs(hdr->h_proto); in should_forward() 544 ntohs(eth_hdr->h_proto), hdr, 0); in forward_bnep()
|
/system/update_engine/ |
D | test_http_server.cc | 638 in_port_t port = ntohs(bound_addr.sin_port); in main()
|