Searched refs:ntohs (Results 1 – 10 of 10) sorted by relevance
| /system/host/loglistener/ |
| A D | loglistener.c | 69 ntohs(addr.sin6_port), errno, strerror(errno)); in main() 74 ntohs(addr.sin6_port), ntohs(addr.sin6_port)); in main() 81 ntohs(addr.sin6_port), nodename); in main()
|
| /system/uapp/netdump/ |
| A D | netdump.c | 155 printf("length %u, ", ntohs(ipv4->tot_len)); in parse_packet() 165 printf("length %u, ", ntohs(ipv6->length)); in parse_packet() 176 print_port(ntohs(tcp->source), options->verbose_level); in parse_packet() 178 print_port(ntohs(tcp->dest), options->verbose_level); in parse_packet() 182 print_port(ntohs(udp->uh_sport), options->verbose_level); in parse_packet() 184 print_port(ntohs(udp->uh_dport), options->verbose_level); in parse_packet()
|
| /system/ulib/inet6/include/inet6/ |
| A D | inet6.h | 113 #ifndef ntohs 114 #define ntohs(n) be16toh(n) macro
|
| /system/ulib/tftp/ |
| A D | tftp-test.cpp | 296 EXPECT_EQ(ntohs(msg->opcode) & 0xff, opcode, "bad opcode"); in verify_response_opcode() 736 EXPECT_EQ(OPCODE_DATA, ntohs(msg->opcode) & 0xff, "bad opcode"); in verify_read_data() 738 ASSERT_EQ(td.expected.block, ntohs(msg->block), "bad block number"); in verify_read_data() 1265 EXPECT_EQ(ntohs(msg->opcode) & 0xff, OPCODE_ACK, "bad opcode"); in test_tftp_receive_data_skipped_block() 1267 EXPECT_EQ((ntohs(msg->opcode) & 0xff00) >> 8, 1, "bad opcode prefix"); in test_tftp_receive_data_skipped_block() 1268 EXPECT_EQ(ntohs(msg->block), 0, "bad block number"); in test_tftp_receive_data_skipped_block() 1278 EXPECT_EQ(ntohs(msg->opcode) & 0xff, OPCODE_ACK, "bad opcode"); in test_tftp_receive_data_skipped_block() 1280 EXPECT_EQ(ntohs(msg->block), 0, "bad block number"); in test_tftp_receive_data_skipped_block() 1353 EXPECT_EQ(ntohs(msg->opcode) & 0xff, OPCODE_ACK, "bad opcode"); in test_tftp_receive_data_windowsize_skipped_block() 1356 EXPECT_EQ(ntohs(msg->block), 2, "bad block number"); in test_tftp_receive_data_windowsize_skipped_block() [all …]
|
| A D | tftp.c | 710 uint16_t block_num = ntohs(data->block); in tftp_handle_data() 783 uint16_t ack_block = ntohs(ack_data->block); in tftp_handle_ack() 829 uint16_t err_code = ntohs(err->err_code); in tftp_handle_error() 972 uint16_t opcode = ntohs(msg->opcode) & 0xff; in tftp_process_msg()
|
| A D | tftp-example.c | 59 uint16_t opcode = ntohs(*(uint16_t*)msg); in connection_send()
|
| /system/ulib/inet6/ |
| A D | inet6.c | 315 n = ntohs(udp->length); in _udp6_recv() 327 (void*)&ip->dst, ntohs(udp->dst_port), in _udp6_recv() 328 (void*)&ip->src, ntohs(udp->src_port)); in _udp6_recv() 466 n = ntohs(ip->length); in eth_recv()
|
| /system/uapp/ping/ |
| A D | ping.cpp | 297 int seq = ntohs(packet.hdr.un.echo.sequence); in main()
|
| /system/host/bootserver/ |
| A D | netboot.c | 283 ntohs(addr->sin6_port)); in netboot_xfer()
|
| A D | bootserver.c | 80 ntohs(addr->sin6_port)); in sockaddr_str()
|
Completed in 32 milliseconds