/kernel/linux/linux-5.10/drivers/scsi/libfc/ |
H A D | fc_disc.c | 97 len = ntohs(rp->rscn_plen); in fc_disc_recv_rscn_req() 519 seq_cnt = ntohs(fh->fh_seq_cnt); in fc_disc_gpn_ft_resp() 526 } else if (ntohs(cp->ct_cmd) == FC_FS_ACC) { in fc_disc_gpn_ft_resp() 531 } else if (ntohs(cp->ct_cmd) == FC_FS_RJT) { in fc_disc_gpn_ft_resp() 541 "%x\n", ntohs(cp->ct_cmd)); in fc_disc_gpn_ft_resp() 594 if (ntohs(cp->ct_cmd) == FC_FS_ACC) { in fc_disc_gpn_id_resp() 621 } else if (ntohs(cp->ct_cmd) == FC_FS_RJT) { in fc_disc_gpn_id_resp() 627 ntohs(cp->ct_cmd)); in fc_disc_gpn_id_resp()
|
/kernel/linux/linux-6.6/drivers/scsi/libfc/ |
H A D | fc_disc.c | 96 len = ntohs(rp->rscn_plen); in fc_disc_recv_rscn_req() 516 seq_cnt = ntohs(fh->fh_seq_cnt); in fc_disc_gpn_ft_resp() 523 } else if (ntohs(cp->ct_cmd) == FC_FS_ACC) { in fc_disc_gpn_ft_resp() 528 } else if (ntohs(cp->ct_cmd) == FC_FS_RJT) { in fc_disc_gpn_ft_resp() 538 "%x\n", ntohs(cp->ct_cmd)); in fc_disc_gpn_ft_resp() 591 if (ntohs(cp->ct_cmd) == FC_FS_ACC) { in fc_disc_gpn_id_resp() 618 } else if (ntohs(cp->ct_cmd) == FC_FS_RJT) { in fc_disc_gpn_id_resp() 624 ntohs(cp->ct_cmd)); in fc_disc_gpn_id_resp()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/ |
H A D | ctrl_iface_udp.c | 101 ntohs(from->sin6_port)); in wpa_supplicant_ctrl_iface_attach() 104 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach() 132 ntohs(from->sin6_port)); 138 ntohs(from->sin_port)); 179 ntohs(from->sin6_port)); 185 ntohs(from->sin_port)); 541 ntohs(dst->addr.sin6_port)); 545 ntohs(dst->addr.sin_port));
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/ |
H A D | ctrl_iface_udp.c | 101 ntohs(from->sin6_port)); in wpa_supplicant_ctrl_iface_attach() 104 inet_ntoa(from->sin_addr), ntohs(from->sin_port)); in wpa_supplicant_ctrl_iface_attach() 132 ntohs(from->sin6_port)); 138 ntohs(from->sin_port)); 179 ntohs(from->sin6_port)); 185 ntohs(from->sin_port)); 561 ntohs(dst->addr.sin6_port)); 565 ntohs(dst->addr.sin_port));
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | fin_ack_lat.c | 78 ntohs(laddr.sin_port), lat, in client() 143 fprintf(stderr, "server port: %d\n", ntohs(laddr.sin_port)); in main() 146 client(ntohs(laddr.sin_port)); in main()
|
/kernel/linux/linux-5.10/net/bridge/netfilter/ |
H A D | ebt_ip.c | 66 if (ntohs(ih->frag_off) & IP_OFFSET) in ebt_ip_mt() 75 u32 dst = ntohs(pptr->tcpudphdr.dst); in ebt_ip_mt() 82 u32 src = ntohs(pptr->tcpudphdr.src); in ebt_ip_mt()
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | fin_ack_lat.c | 78 ntohs(laddr.sin_port), lat, in client() 143 fprintf(stderr, "server port: %d\n", ntohs(laddr.sin_port)); in main() 146 client(ntohs(laddr.sin_port)); in main()
|
/kernel/linux/linux-6.6/net/bridge/netfilter/ |
H A D | ebt_ip.c | 66 if (ntohs(ih->frag_off) & IP_OFFSET) in ebt_ip_mt() 75 u32 dst = ntohs(pptr->tcpudphdr.dst); in ebt_ip_mt() 82 u32 src = ntohs(pptr->tcpudphdr.src); in ebt_ip_mt()
|
/kernel/linux/linux-5.10/net/tipc/ |
H A D | udp_media.c | 102 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_is_mcast_addr() 128 if (ntohs(ua->proto) == ETH_P_IP) in tipc_udp_addr2str() 129 snprintf(buf, size, "%pI4:%u", &ua->ipv4, ntohs(ua->port)); in tipc_udp_addr2str() 130 else if (ntohs(ua->proto) == ETH_P_IPV6) in tipc_udp_addr2str() 131 snprintf(buf, size, "%pI6:%u", &ua->ipv6, ntohs(ua->port)); in tipc_udp_addr2str() 314 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_rcast_add() 317 else if (ntohs(addr->proto) == ETH_P_IPV6) in tipc_udp_rcast_add() 405 if (ntohs(remote->proto) == ETH_P_IP) { in enable_mcast() 421 if (ntohs(addr->proto) == ETH_P_IP) { in __tipc_nl_add_udp_addr() 432 } else if (ntohs(add in __tipc_nl_add_udp_addr() [all...] |
/kernel/linux/linux-6.6/net/tipc/ |
H A D | udp_media.c | 108 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_is_mcast_addr() 134 if (ntohs(ua->proto) == ETH_P_IP) in tipc_udp_addr2str() 135 snprintf(buf, size, "%pI4:%u", &ua->ipv4, ntohs(ua->port)); in tipc_udp_addr2str() 136 else if (ntohs(ua->proto) == ETH_P_IPV6) in tipc_udp_addr2str() 137 snprintf(buf, size, "%pI6:%u", &ua->ipv6, ntohs(ua->port)); in tipc_udp_addr2str() 320 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_rcast_add() 323 else if (ntohs(addr->proto) == ETH_P_IPV6) in tipc_udp_rcast_add() 411 if (ntohs(remote->proto) == ETH_P_IP) { in enable_mcast() 429 if (ntohs(addr->proto) == ETH_P_IP) { in __tipc_nl_add_udp_addr() 440 } else if (ntohs(add in __tipc_nl_add_udp_addr() [all...] |
/kernel/linux/linux-5.10/net/batman-adv/ |
H A D | fragmentation.c | 158 seqno = ntohs(frag_packet->seqno); in batadv_frag_insert_packet() 178 chain->total_size = ntohs(frag_packet->total_size); in batadv_frag_insert_packet() 213 chain->total_size != ntohs(frag_packet->total_size) || in batadv_frag_insert_packet() 221 } else if (ntohs(frag_packet->total_size) == chain->size) { in batadv_frag_insert_packet() 266 size = ntohs(packet->total_size) + hdr_size; in batadv_frag_merge_packets() 373 total_size = ntohs(packet->total_size); in batadv_frag_skb_fwd()
|
H A D | tvlv.c | 171 tvlv_len += ntohs(tvlv->tvlv_hdr.len); in batadv_tvlv_container_list_size() 248 memcpy(tvlv_new + 1, tvlv_value, ntohs(tvlv_new->tvlv_hdr.len)); in batadv_tvlv_container_register() 341 memcpy(tvlv_value, tvlv + 1, ntohs(tvlv->tvlv_hdr.len)); in batadv_tvlv_container_ogm_append() 342 tvlv_value = (u8 *)tvlv_value + ntohs(tvlv->tvlv_hdr.len); in batadv_tvlv_container_ogm_append() 432 tvlv_value_cont_len = ntohs(tvlv_hdr->len); in batadv_tvlv_containers_process() 488 tvlv_value_len = ntohs(batadv_ogm_packet->tvlv_len); in batadv_tvlv_ogm_receive()
|
/kernel/linux/linux-5.10/net/netfilter/ipvs/ |
H A D | ip_vs_mh.c | 100 v = (offset + ntohs(port) + ntohl(addr_fold)); in ip_vs_mh_hashkey() 265 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port)); in ip_vs_mh_get_fallback() 282 ntohs(dest->port), roffset); in ip_vs_mh_get_fallback() 313 ntohs(svc->port)); in ip_vs_mh_reassign() 504 ntohs(port), in ip_vs_mh_schedule() 506 ntohs(dest->port)); in ip_vs_mh_schedule()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec_rxtx.c | 128 ipv4hdr->tot_len = htons(ntohs(ipv4hdr->tot_len) - trailer_len); in mlx5e_ipsec_remove_trailer() 131 ipv6hdr->payload_len = htons(ntohs(ipv6hdr->payload_len) - in mlx5e_ipsec_remove_trailer() 222 ntohs(tcph->source), ntohs(tcph->dest), in mlx5e_ipsec_set_metadata() 234 ntohs(mdata->content.tx.mss_inv), in mlx5e_ipsec_set_metadata() 235 ntohs(mdata->content.tx.seq)); in mlx5e_ipsec_set_metadata()
|
/kernel/linux/linux-6.6/net/smc/ |
H A D | smc_clc.h | 325 ((u8 *)pclc + sizeof(*pclc) + ntohs(pclc->iparea_offset)); in smc_clc_proposal_get_prefix() 354 ntohs(prop->iparea_offset) != sizeof(struct smc_clc_msg_smcd)) in smc_get_clc_msg_smcd() 365 if (!prop_smcd || !ntohs(prop_smcd->v2_ext_offset)) in smc_get_clc_v2_ext() 372 ntohs(prop_smcd->v2_ext_offset)); in smc_get_clc_v2_ext() 380 if (!ntohs(prop_v2ext->hdr.smcd_v2_ext_offset)) in smc_get_clc_smcd_v2_ext() 388 ntohs(prop_v2ext->hdr.smcd_v2_ext_offset)); in smc_get_clc_smcd_v2_ext()
|
/kernel/linux/linux-6.6/net/batman-adv/ |
H A D | tvlv.c | 171 tvlv_len += ntohs(tvlv->tvlv_hdr.len); in batadv_tvlv_container_list_size() 248 memcpy(tvlv_new + 1, tvlv_value, ntohs(tvlv_new->tvlv_hdr.len)); in batadv_tvlv_container_register() 341 memcpy(tvlv_value, tvlv + 1, ntohs(tvlv->tvlv_hdr.len)); in batadv_tvlv_container_ogm_append() 342 tvlv_value = (u8 *)tvlv_value + ntohs(tvlv->tvlv_hdr.len); in batadv_tvlv_container_ogm_append() 448 tvlv_value_cont_len = ntohs(tvlv_hdr->len); in batadv_tvlv_containers_process() 507 tvlv_value_len = ntohs(batadv_ogm_packet->tvlv_len); in batadv_tvlv_ogm_receive()
|
H A D | fragmentation.c | 157 seqno = ntohs(frag_packet->seqno); in batadv_frag_insert_packet() 177 chain->total_size = ntohs(frag_packet->total_size); in batadv_frag_insert_packet() 212 chain->total_size != ntohs(frag_packet->total_size) || in batadv_frag_insert_packet() 220 } else if (ntohs(frag_packet->total_size) == chain->size) { in batadv_frag_insert_packet() 265 size = ntohs(packet->total_size) + hdr_size; in batadv_frag_merge_packets() 372 total_size = ntohs(packet->total_size); in batadv_frag_skb_fwd()
|
/kernel/linux/linux-6.6/net/netfilter/ipvs/ |
H A D | ip_vs_mh.c | 100 v = (offset + ntohs(port) + ntohl(addr_fold)); in ip_vs_mh_hashkey() 264 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port)); in ip_vs_mh_get_fallback() 281 ntohs(dest->port), roffset); in ip_vs_mh_get_fallback() 312 ntohs(svc->port)); in ip_vs_mh_reassign() 503 ntohs(port), in ip_vs_mh_schedule() 505 ntohs(dest->port)); in ip_vs_mh_schedule()
|
/third_party/ltp/lib/ |
H A D | safe_net.c | 37 if (ntohs(sin->sin_port) != 0) { in tst_sock_addr() 39 ntohs(sin->sin_port)); in tst_sock_addr() 53 if (ntohs(sin6->sin6_port) != 0) { in tst_sock_addr() 55 ntohs(sin6->sin6_port)); in tst_sock_addr() 97 return ntohs(sin->sin_port); in tst_getsockport() 102 return ntohs(sin6->sin6_port); in tst_getsockport()
|
/third_party/musl/Benchmark/musl/ |
H A D | socket_test.cpp | 348 printf("peer addr: %s:%d\n", inet_ntoa(peerAddr.sin_addr), ntohs(peerAddr.sin_port)); in Bm_function_getpeername_client_local() 366 printf("peer addr: %s:%d\n", inet_ntoa(peerAddr.sin_addr), ntohs(peerAddr.sin_port)); in Bm_function_getpeername_client_external() 425 printf("peer addr: %s:%d\n", inet_ntoa(peerAddr.sin_addr), ntohs(peerAddr.sin_port)); in Bm_function_getpeername_server() 443 printf("sock addr: %s:%d\n", inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in Bm_function_getsockname_client_local() 461 printf("sock addr: %s:%d\n", inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in Bm_function_getsockname_client_external() 480 printf("sock addr: %s:%d\n", inet_ntoa(addr.sin_addr), ntohs(addr.sin_port)); in Bm_function_getsockname_server()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/cxgb4/ |
H A D | device.c | 276 &lsin->sin_addr, ntohs(lsin->sin_port), in dump_qp() 277 ntohs(m_lsin->sin_port), in dump_qp() 278 &rsin->sin_addr, ntohs(rsin->sin_port), in dump_qp() 279 ntohs(m_rsin->sin_port)); in dump_qp() 297 ntohs(lsin6->sin6_port), in dump_qp() 298 ntohs(m_lsin6->sin6_port), in dump_qp() 300 ntohs(rsin6->sin6_port), in dump_qp() 301 ntohs(m_rsin6->sin6_port)); in dump_qp() 584 &lsin->sin_addr, ntohs(lsin->sin_port), in dump_ep() 585 ntohs(m_lsi in dump_ep() [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/cxgb4/ |
H A D | device.c | 276 &lsin->sin_addr, ntohs(lsin->sin_port), in dump_qp() 277 ntohs(m_lsin->sin_port), in dump_qp() 278 &rsin->sin_addr, ntohs(rsin->sin_port), in dump_qp() 279 ntohs(m_rsin->sin_port)); in dump_qp() 297 ntohs(lsin6->sin6_port), in dump_qp() 298 ntohs(m_lsin6->sin6_port), in dump_qp() 300 ntohs(rsin6->sin6_port), in dump_qp() 301 ntohs(m_rsin6->sin6_port)); in dump_qp() 584 &lsin->sin_addr, ntohs(lsin->sin_port), in dump_ep() 585 ntohs(m_lsi in dump_ep() [all...] |
/kernel/liteos_a/apps/tftp/src/ |
H A D | tftpc.c | 218 usOpcode = ntohs(pstRecvBuf->usOpcode); in lwip_tftp_recv_from_server() 221 ulError = ntohs(pstRecvBuf->u.stTFTP_Err.usErrNum); in lwip_tftp_recv_from_server() 274 (ntohs(pstRecvBuf->u.stTFTP_Data.usBlknum) == 1)) || in lwip_tftp_recv_from_server() 276 (ntohs(pstRecvBuf->u.usBlknum) == 0))) { in lwip_tftp_recv_from_server() 366 usBlknum = ntohs(pstRecvBuf->u.stTFTP_Data.usBlknum); in lwip_tftp_validate_data_pkt() 432 if (TFTPC_OP_DATA != ntohs(pstRecvBuf->usOpcode)) { in lwip_tftp_validate_data_pkt() 440 usBlknum = ntohs(pstRecvBuf->u.stTFTP_Data.usBlknum); in lwip_tftp_validate_data_pkt() 730 if (ntohs(pstRecvBuf->usOpcode) != TFTPC_OP_DATA) { in lwip_tftp_get_file_by_filename() 1269 if (TFTPC_OP_ACK != ntohs(pstRecvBuf->usOpcode)) { in lwip_tftp_inner_put_file() 1284 usBlknum = ntohs(pstRecvBu in lwip_tftp_inner_put_file() [all...] |
/kernel/linux/common_modules/newip/examples/ |
H A D | nip_udp_server_demo.c | 48 si_remote.sin_addr.NIP_ADDR_FIELD16[0], ntohs(si_remote.sin_port)); in recv_send() 56 si_remote.sin_addr.NIP_ADDR_FIELD8[0], ntohs(si_remote.sin_port)); in recv_send()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
H A D | probe_user.c | 63 inet_ntoa(in->sin_addr), ntohs(in->sin_port))) in test_probe_user() 71 inet_ntoa(in->sin_addr), ntohs(in->sin_port))) in test_probe_user()
|