/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
H A D | cgrp_local_storage.c | 113 cookie_expected_value = (ntohs(addr.sin6_port) << 8) | 0xFF; in test_attach_cgroup()
|
/kernel/linux/linux-6.6/tools/usb/usbip/src/ |
H A D | usbip_network.c | 72 i = ntohs(num); in usbip_net_pack_uint16_t()
|
/kernel/linux/linux-6.6/drivers/scsi/libfc/ |
H A D | fc_libfc.c | 197 fh->fh_seq_cnt = ntohs(seq_cnt); in fc_fill_hdr()
|
/kernel/linux/linux-6.6/net/ncsi/ |
H A D | ncsi-aen.c | 27 if (ntohs(h->common.length) != payload) in ncsi_validate_aen_pkt()
|
/kernel/linux/linux-6.6/net/netfilter/ipvs/ |
H A D | ip_vs_wrr.c | 214 IP_VS_DBG_ADDR(dest->af, &dest->addr), ntohs(dest->port), in ip_vs_wrr_schedule()
|
/kernel/linux/linux-6.6/net/dccp/ |
H A D | minisocks.c | 264 inet_rsk(req)->ir_num = ntohs(dccp_hdr(skb)->dccph_dport); in dccp_reqsk_init()
|
/kernel/linux/linux-6.6/net/dsa/ |
H A D | tag_ocelot.c | 32 if (ntohs(hdr->h_vlan_proto) == proto) { in ocelot_xmit_get_vlan_info()
|
/kernel/linux/linux-6.6/net/ipv6/ |
H A D | xfrm6_input.c | 145 ip6h->payload_len = htons(ntohs(ip6h->payload_len) - len); in xfrm6_udp_encap_rcv()
|
H A D | ipcomp6.c | 58 spi = htonl(ntohs(ipcomph->cpi)); in ipcomp6_err()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | ipcomp.c | 41 spi = htonl(ntohs(ipch->cpi)); in ipcomp4_err()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_netdev.c | 385 ntohs(interface->vxlan_port) | in fm10k_restore_udp_port_info() 390 ntohs(interface->geneve_port)); in fm10k_restore_udp_port_info() 550 ntohs(vhdr->h_vlan_TCI)); in fm10k_xmit_frame() 552 skb->protocol = (ntohs(proto) >= 1536) ? proto : in fm10k_xmit_frame()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_flower.c | 184 ethtype_key = ntohs(match.key->n_proto); in cxgb4_process_flow_match() 185 ethtype_mask = ntohs(match.mask->n_proto); in cxgb4_process_flow_match() 333 ethtype_key = ntohs(match.key->n_proto); in cxgb4_validate_flow_match() 334 ethtype_mask = ntohs(match.mask->n_proto); in cxgb4_validate_flow_match()
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | xt_hashlimit.c | 1102 ntohs(ent->dst.src_port), in dl_seq_print() 1104 ntohs(ent->dst.dst_port), in dl_seq_print() 1113 ntohs(ent->dst.src_port), in dl_seq_print() 1115 ntohs(ent->dst.dst_port), in dl_seq_print()
|
H A D | nf_conntrack_proto_tcp.c | 484 win_raw = ntohs(tcph->window); in tcp_in_window() 790 ct->proto.tcp.seen[0].td_maxwin = ntohs(th->window); in tcp_new() 810 ct->proto.tcp.seen[0].td_maxwin = ntohs(th->window); in tcp_new() 967 ct->proto.tcp.last_win = ntohs(th->window); in nf_conntrack_tcp_packet()
|
H A D | nf_flow_table_offload.c | 397 port = ntohs(flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_port); in flow_offload_port_snat() 403 port = ntohs(flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.src_port); in flow_offload_port_snat() 427 port = ntohs(flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.src_port); in flow_offload_port_dnat() 433 port = ntohs(flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.dst_port); in flow_offload_port_dnat()
|
/kernel/linux/linux-5.10/net/l2tp/ |
H A D | l2tp_netlink.c | 331 if (nla_put_u16(skb, L2TP_ATTR_UDP_SPORT, ntohs(inet->inet_sport)) || in l2tp_nl_tunnel_send_addr6() 332 nla_put_u16(skb, L2TP_ATTR_UDP_DPORT, ntohs(inet->inet_dport))) in l2tp_nl_tunnel_send_addr6() 353 nla_put_u16(skb, L2TP_ATTR_UDP_SPORT, ntohs(inet->inet_sport)) || in l2tp_nl_tunnel_send_addr4() 354 nla_put_u16(skb, L2TP_ATTR_UDP_DPORT, ntohs(inet->inet_dport))) in l2tp_nl_tunnel_send_addr4()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_netdev.c | 385 ntohs(interface->vxlan_port) | in fm10k_restore_udp_port_info() 390 ntohs(interface->geneve_port)); in fm10k_restore_udp_port_info() 550 ntohs(vhdr->h_vlan_TCI)); in fm10k_xmit_frame() 552 skb->protocol = (ntohs(proto) >= 1536) ? proto : in fm10k_xmit_frame()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_tc_flower.c | 184 ethtype_key = ntohs(match.key->n_proto); in cxgb4_process_flow_match() 185 ethtype_mask = ntohs(match.mask->n_proto); in cxgb4_process_flow_match() 333 ethtype_key = ntohs(match.key->n_proto); in cxgb4_validate_flow_match() 334 ethtype_mask = ntohs(match.mask->n_proto); in cxgb4_validate_flow_match()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | tc_tun.c | 976 ntohs(enc_ports.mask->dst)); in mlx5e_tc_tun_parse_udp_ports() 978 ntohs(enc_ports.key->dst)); in mlx5e_tc_tun_parse_udp_ports() 986 ntohs(enc_ports.mask->src)); in mlx5e_tc_tun_parse_udp_ports() 988 ntohs(enc_ports.key->src)); in mlx5e_tc_tun_parse_udp_ports()
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | xt_hashlimit.c | 1102 ntohs(ent->dst.src_port), in dl_seq_print() 1104 ntohs(ent->dst.dst_port), in dl_seq_print() 1113 ntohs(ent->dst.src_port), in dl_seq_print() 1115 ntohs(ent->dst.dst_port), in dl_seq_print()
|
H A D | nf_flow_table_offload.c | 475 port = ntohs(flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_port); in flow_offload_port_snat() 481 port = ntohs(flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.src_port); in flow_offload_port_snat() 505 port = ntohs(flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.src_port); in flow_offload_port_dnat() 511 port = ntohs(flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.dst_port); in flow_offload_port_dnat()
|
/kernel/linux/linux-6.6/net/batman-adv/ |
H A D | multicast.c | 1074 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_mode_check() 1104 switch (ntohs(ethhdr->h_proto)) { in batadv_mcast_forw_want_all_ip_count() 1353 switch (ntohs(eth_hdr(skb)->h_proto)) { in batadv_mcast_forw_want_all() 1456 switch (ntohs(eth_hdr(skb)->h_proto)) { in batadv_mcast_forw_want_rtr()
|
/kernel/linux/linux-6.6/net/l2tp/ |
H A D | l2tp_netlink.c | 331 if (nla_put_u16(skb, L2TP_ATTR_UDP_SPORT, ntohs(inet->inet_sport)) || in l2tp_nl_tunnel_send_addr6() 332 nla_put_u16(skb, L2TP_ATTR_UDP_DPORT, ntohs(inet->inet_dport))) in l2tp_nl_tunnel_send_addr6() 353 nla_put_u16(skb, L2TP_ATTR_UDP_SPORT, ntohs(inet->inet_sport)) || in l2tp_nl_tunnel_send_addr4() 354 nla_put_u16(skb, L2TP_ATTR_UDP_DPORT, ntohs(inet->inet_dport))) in l2tp_nl_tunnel_send_addr4()
|
/kernel/linux/linux-5.10/drivers/media/dvb-core/ |
H A D | dvb_net.c | 146 if (ntohs(eth->h_proto) >= ETH_P_802_3_MIN) in dvb_net_eth_type_trans() 189 if(ntohs(hdr->h_proto) < ETH_P_802_3_MIN) { in ule_bridged_sndu() 192 if(framelen != ntohs(hdr->h_proto)) { in ule_bridged_sndu() 239 p->ule_sndu_type = ntohs(*(__be16 *)p->ule_next_hdr); in handle_one_ule_extension() 242 p->ule_sndu_type = ntohs(*(__be16 *)(p->ule_next_hdr + ((p->ule_dbit ? 2 : 3) * ETH_ALEN))); in handle_one_ule_extension() 256 p->ule_sndu_type = ntohs( *(__be16 *)(p->ule_next_hdr-2) ); in handle_one_ule_extension()
|
/kernel/linux/linux-5.10/drivers/scsi/fcoe/ |
H A D | fcoe.c | 575 if (ntohs(frame->eth.h_proto) == ETH_P_FIP && in fcoe_fip_send() 576 ntohs(frame->fip.fip_op) == FIP_OP_VLAN && in fcoe_fip_send() 906 (ntohs(fh->fh_rx_id) == FC_XID_UNKNOWN)) { in fcoe_oem_match() 1406 cpu = ntohs(fh->fh_ox_id) & fc_cpu_mask; in fcoe_rcv() 1408 if (ntohs(fh->fh_rx_id) == FC_XID_UNKNOWN) in fcoe_rcv() 1411 cpu = ntohs(fh->fh_rx_id) & fc_cpu_mask; in fcoe_rcv()
|