Home
last modified time | relevance | path

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

/hardware/google/apf/
Dapf_checksum_test.cc18 #define htons(x) __builtin_bswap16(x) macro
58 ether_ipv4_udp_pkt.pkt.udphdr.check = htons(sizeof(ether_ipv4_udp_pkt) - IPV4_HLEN - ETH_HLEN); in TEST()
99 ether_ipv6_udp_pkt.pkt.udphdr.check = htons(sizeof(ether_ipv6_udp_pkt) - IPV6_HLEN - ETH_HLEN); in TEST()
137 …ether_ipv6_icmp6_pkt.pkt.icmp6hdr.icmp6_cksum = htons(sizeof(ether_ipv6_icmp6_pkt) - IPV6_HLEN - E… in TEST()
179 htons(sizeof(ether_ipv6_hopopts_icmp6_pkt) - IPV6_HLEN - ETH_HLEN in TEST()
227 ether_ipv4_igmpv2_pkt.pkt.iphdr.check = htons(0x9404); in TEST()
/hardware/interfaces/tv/tuner/aidl/vts/functional/utils/
DIpStreamer.cpp42 destaddr.sin_port = htons(mPort); in ipStreamThreadLoop()
/hardware/nxp/keymint/transport/
DSocketTransport.cpp46 serv_addr.sin_port = htons(PORT); in openConnection()
/hardware/interfaces/bluetooth/1.0/default/test/
Dasync_fd_watcher_unittest.cc59 serv_addr.sin_port = htons(kPort); in StartServer()
167 serv_addr.sin_port = htons(kPort); in ConnectClient()
/hardware/interfaces/bluetooth/async/test/
Dasync_fd_watcher_unittest.cc57 serv_addr.sin_port = htons(kPort); in StartServer()
165 serv_addr.sin_port = htons(kPort); in ConnectClient()
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/
DIPACM_Conntrack_NATApp.cpp450 nfct_set_attr_u16(ct, ATTR_PORT_SRC, htons(rule->private_port)); in UpdateCTUdpTs()
453 nfct_set_attr_u16(ct, ATTR_PORT_DST, htons(rule->target_port)); in UpdateCTUdpTs()
460 nfct_set_attr_u16(ct, ATTR_PORT_SRC, htons(rule->target_port)); in UpdateCTUdpTs()
463 nfct_set_attr_u16(ct, ATTR_PORT_DST, htons(rule->public_port)); in UpdateCTUdpTs()
DIPACM_Wan.cpp6138 eth_ipv6->h_proto = htons(ETH_P_IPV6); in add_dummy_rx_hdr()
/hardware/libhardware/modules/sensors/dynamic_sensor/
DConnectionDetector.cpp44 .sin_port = htons(port), in SocketConnectionDetector()
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/src/
DIPACM_Conntrack_NATApp.cpp690 nfct_set_attr_u16(ct, ATTR_PORT_SRC, htons(rule->private_port)); in UpdateCTUdpTs()
693 nfct_set_attr_u16(ct, ATTR_PORT_DST, htons(rule->target_port)); in UpdateCTUdpTs()
700 nfct_set_attr_u16(ct, ATTR_PORT_SRC, htons(rule->target_port)); in UpdateCTUdpTs()
703 nfct_set_attr_u16(ct, ATTR_PORT_DST, htons(rule->public_port)); in UpdateCTUdpTs()
DIPACM_Wan.cpp7236 eth_ipv6->h_proto = htons(ETH_P_IPV6); in add_dummy_rx_hdr()
/hardware/qcom/sm7250/gps/utils/
DLocIpc.cpp211 mAddr({.sin_family = AF_INET, .sin_port = htons(port), in LocIpcInetSender()
262 sockaddr_in loopBackAddr = {.sin_family = AF_INET, .sin_port = htons(mPort), in abort()
/hardware/qcom/sm8150p/gps/utils/
DLocIpc.cpp196 mAddr({.sin_family = AF_INET, .sin_port = htons(port), in LocIpcInetSender()
243 sockaddr_in loopBackAddr = {.sin_family = AF_INET, .sin_port = htons(mPort), in abort()
/hardware/qcom/sm7150/gps/utils/
DLocIpc.cpp211 mAddr({.sin_family = AF_INET, .sin_port = htons(port), in LocIpcInetSender()
262 sockaddr_in loopBackAddr = {.sin_family = AF_INET, .sin_port = htons(mPort), in abort()
/hardware/qcom/sm8150/gps/utils/
DLocIpc.cpp211 mAddr({.sin_family = AF_INET, .sin_port = htons(port), in LocIpcInetSender()
262 sockaddr_in loopBackAddr = {.sin_family = AF_INET, .sin_port = htons(mPort), in abort()
/hardware/libhardware/modules/soundtrigger/
Dsound_trigger_hw.c414 self_info.sin_port = htons(14035); in control_thread_loop()
580 remote_info.sin_port = htons(14035); in send_loop_kill_signal()
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_socket.c562 server_addr.addr_in.sin_port = (__be16) htons(port); in tunning_server_socket_listen()