Searched refs:htons (Results 1 – 16 of 16) sorted by relevance
/hardware/google/apf/ |
D | apf_checksum_test.cc | 18 #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/ |
D | IpStreamer.cpp | 42 destaddr.sin_port = htons(mPort); in ipStreamThreadLoop()
|
/hardware/nxp/keymint/transport/ |
D | SocketTransport.cpp | 46 serv_addr.sin_port = htons(PORT); in openConnection()
|
/hardware/interfaces/bluetooth/1.0/default/test/ |
D | async_fd_watcher_unittest.cc | 59 serv_addr.sin_port = htons(kPort); in StartServer() 167 serv_addr.sin_port = htons(kPort); in ConnectClient()
|
/hardware/interfaces/bluetooth/async/test/ |
D | async_fd_watcher_unittest.cc | 57 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/ |
D | IPACM_Conntrack_NATApp.cpp | 450 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()
|
D | IPACM_Wan.cpp | 6138 eth_ipv6->h_proto = htons(ETH_P_IPV6); in add_dummy_rx_hdr()
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | ConnectionDetector.cpp | 44 .sin_port = htons(port), in SocketConnectionDetector()
|
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/src/ |
D | IPACM_Conntrack_NATApp.cpp | 690 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()
|
D | IPACM_Wan.cpp | 7236 eth_ipv6->h_proto = htons(ETH_P_IPV6); in add_dummy_rx_hdr()
|
/hardware/qcom/sm7250/gps/utils/ |
D | LocIpc.cpp | 211 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/ |
D | LocIpc.cpp | 196 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/ |
D | LocIpc.cpp | 211 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/ |
D | LocIpc.cpp | 211 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/ |
D | sound_trigger_hw.c | 414 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/ |
D | mm_qcamera_socket.c | 562 server_addr.addr_in.sin_port = (__be16) htons(port); in tunning_server_socket_listen()
|