Home
last modified time | relevance | path

Searched refs:htons (Results 1 – 15 of 15) sorted by relevance

/system/core/libnetutils/
Dpacket.c48 if((s = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP))) < 0) { in open_raw_socket()
54 bindaddr.sll_protocol = htons(ETH_P_IP); in open_raw_socket()
104 ip.tot_len = htons(sizeof(ip) + sizeof(udp) + size); in send_packet()
114 udp.source = htons(sport); in send_packet()
115 udp.dest = htons(dport); in send_packet()
116 udp.len = htons(sizeof(udp) + size); in send_packet()
122 temp = htons(IPPROTO_UDP); in send_packet()
142 destaddr.sll_protocol = htons(ETH_P_IP); in send_packet()
197 } else if (packet.udp.dest != htons(PORT_BOOTP_CLIENT)) { in receive_packet()
Ddhcpmsg.c35 msg->flags = htons(FLAGS_BROADCAST); in init_dhcp_msg()
/system/core/libcutils/
Dsocket_loopback_client.c43 addr.sin_port = htons(port); in socket_loopback_client()
Dsocket_inaddr_any_server.c42 addr.sin_port = htons(port); in socket_inaddr_any_server()
Dsocket_loopback_server.c42 addr.sin_port = htons(port); in socket_loopback_server()
Dsocket_network_client.c62 addr.sin_port = htons(port); in socket_network_client_timeout()
/system/bt/btif/src/
Dbtif_util.c123 uuid1 = htons(uuid1); in string_to_uuid()
124 uuid2 = htons(uuid2); in string_to_uuid()
125 uuid3 = htons(uuid3); in string_to_uuid()
127 uuid5 = htons(uuid5); in string_to_uuid()
Dbtif_pan.c443 eth_hdr.h_proto = htons(proto); in btpan_tap_send()
/system/core/adb/
Dtest_track_devices.cpp33 server.sin_port = htons(5037); in main()
Dsysdeps_win32.cpp598 addr.sin_port = htons(port); in socket_loopback_client()
637 addr.sin_port = htons(port); in socket_loopback_server()
688 addr.sin_port = htons(port); in socket_network_client()
731 addr.sin_port = htons(port); in socket_inaddr_any_server()
/system/bt/hci/src/
Dbtsnoop_net.c94 addr.sin_port = htons(LISTEN_PORT_); in listen_fn_()
/system/bt/tools/hci/
Dmain.c151 addr.sin_port = htons(8873); in write_hci_command()
/system/core/libutils/
DUnicode.cpp25 # undef htons
30 # define htons(x) ntohs(x) macro
/system/bt/osi/src/
Dsocket.c107 addr.sin_port = htons(port); in socket_listen()
/system/netd/server/
DMDnsSdListener.cpp163 port = htons(port); in serviceRegister()