Searched refs:htons (Results 1 – 15 of 15) sorted by relevance
48 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()
35 msg->flags = htons(FLAGS_BROADCAST); in init_dhcp_msg()
43 addr.sin_port = htons(port); in socket_loopback_client()
42 addr.sin_port = htons(port); in socket_inaddr_any_server()
42 addr.sin_port = htons(port); in socket_loopback_server()
62 addr.sin_port = htons(port); in socket_network_client_timeout()
123 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()
443 eth_hdr.h_proto = htons(proto); in btpan_tap_send()
33 server.sin_port = htons(5037); in main()
598 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()
94 addr.sin_port = htons(LISTEN_PORT_); in listen_fn_()
151 addr.sin_port = htons(8873); in write_hci_command()
25 # undef htons30 # define htons(x) ntohs(x) macro
107 addr.sin_port = htons(port); in socket_listen()
163 port = htons(port); in serviceRegister()