| /linux/tools/testing/selftests/bpf/prog_tests/ |
| A D | flow_dissector.c | 122 .addr_proto = ETH_P_IP, 124 .n_proto = __bpf_constant_htons(ETH_P_IP), 164 .addr_proto = ETH_P_IP, 166 .n_proto = __bpf_constant_htons(ETH_P_IP), 210 .addr_proto = ETH_P_IP, 212 .n_proto = __bpf_constant_htons(ETH_P_IP), 235 .addr_proto = ETH_P_IP, 237 .n_proto = __bpf_constant_htons(ETH_P_IP), 354 .addr_proto = ETH_P_IP, 356 .n_proto = __bpf_constant_htons(ETH_P_IP), [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| A D | test_tc_tunnel.c | 241 eth.h_proto = bpf_htons(ETH_P_IP); in __encap_ipv4() 375 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none() 376 return encap_ipv4(skb, IPPROTO_IPIP, ETH_P_IP); in __encap_ipip_none() 384 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_none() 385 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_IP); in __encap_gre_none() 393 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_mpls() 402 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_eth() 411 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_none() 412 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_IP); in __encap_udp_none() 450 return encap_ipv4(skb, IPPROTO_IPV6, ETH_P_IP); in __encap_sit_none() [all …]
|
| A D | test_tc_neigh.c | 93 case __bpf_constant_htons(ETH_P_IP): in tc_dst() 118 case __bpf_constant_htons(ETH_P_IP): in tc_src()
|
| /linux/samples/bpf/ |
| A D | tc_l2_redirect_kern.c | 50 if (eth_proto == htons(ETH_P_IP)) in is_vip_addr() 76 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_forward() 127 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_redirect() 166 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_ip6tun_ingress_redirect() 216 if (eth->h_proto == htons(ETH_P_IP)) { in _drop_non_tun_vip()
|
| A D | sockex3_kern.c | 53 case ETH_P_IP: in parse_eth_proto() 175 parse_eth_proto(skb, ETH_P_IP); in parse_ip_proto() 272 parse_eth_proto(skb, ETH_P_IP); in PROG()
|
| A D | xdp_fwd_kern.c | 62 if (h_proto == htons(ETH_P_IP)) { in xdp_fwd_flags() 133 if (h_proto == htons(ETH_P_IP)) in xdp_fwd_flags()
|
| /linux/include/net/ |
| A D | inet_ecn.h | 175 case cpu_to_be16(ETH_P_IP): in INET_ECN_set_ce() 194 case cpu_to_be16(ETH_P_IP): in skb_get_dsfield() 211 case cpu_to_be16(ETH_P_IP): in INET_ECN_set_ect1() 292 case htons(ETH_P_IP): in IP_ECN_decapsulate() 311 case htons(ETH_P_IP): in IP6_ECN_decapsulate()
|
| A D | tun_proto.h | 19 return htons(ETH_P_IP); in tun_p_to_eth_p() 35 case htons(ETH_P_IP): in tun_p_from_eth_p()
|
| /linux/include/linux/ |
| A D | virtio_net.h | 14 return protocol == cpu_to_be16(ETH_P_IP); in virtio_net_hdr_match_proto() 18 return protocol == cpu_to_be16(ETH_P_IP) || in virtio_net_hdr_match_proto() 34 skb->protocol = cpu_to_be16(ETH_P_IP); in virtio_net_hdr_set_proto() 122 skb->protocol == htons(ETH_P_IP)) { in virtio_net_hdr_to_skb()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| A D | fs_ttc.c | 68 .etype = ETH_P_IP, 76 .etype = ETH_P_IP, 84 .etype = ETH_P_IP, 92 .etype = ETH_P_IP, 100 .etype = ETH_P_IP, 115 .etype = ETH_P_IP, 123 .etype = ETH_P_IP, 131 .etype = ETH_P_IP, 182 if (ethertype == ETH_P_IP) in mlx5_etype_to_ipv()
|
| /linux/net/tipc/ |
| 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() 176 if (dst->proto == htons(ETH_P_IP)) { in tipc_udp_xmit() 320 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_rcast_add() 345 src.proto = htons(ETH_P_IP); in tipc_udp_rcast_disc() 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() 591 addr->proto = htons(ETH_P_IP); in tipc_parse_udp_addr() 726 if (local.proto == htons(ETH_P_IP)) { in tipc_udp_enable()
|
| /linux/drivers/infiniband/sw/rxe/ |
| A D | rxe_icrc.c | 82 (skb->protocol == htons(ETH_P_IP) ? in rxe_icrc_hdr() 96 if (skb->protocol == htons(ETH_P_IP)) { /* IPv4 */ in rxe_icrc_hdr() 158 else if (skb->protocol == htons(ETH_P_IP)) in rxe_icrc_check()
|
| /linux/tools/testing/selftests/net/ |
| A D | psock_snd.c | 109 tag[1] = htons(ETH_P_IP); in build_eth_header() 113 eth->h_proto = htons(ETH_P_IP); in build_eth_header() 175 laddr.sll_protocol = htons(ETH_P_IP); in do_bind() 202 laddr.sll_protocol = htons(ETH_P_IP); in do_send()
|
| A D | txring_overwrite.c | 51 eth->h_proto = htons(ETH_P_IP); in build_packet() 79 fdr = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_IP)); in setup_rx()
|
| /linux/drivers/net/arcnet/ |
| A D | rfc1051.c | 107 return htons(ETH_P_IP); in type_trans() 117 return htons(ETH_P_IP); in type_trans() 170 case ETH_P_IP: in build_header()
|
| /linux/net/batman-adv/ |
| A D | multicast.c | 204 if (!br_multicast_has_router_adjacent(dev, ETH_P_IP)) in batadv_mcast_mla_rtr_flags_bridge_get() 530 if (src->proto == htons(ETH_P_IP)) in batadv_mcast_mla_br_addr_cpy() 573 if (br_ip_entry->addr.proto == htons(ETH_P_IP)) { in batadv_mcast_mla_bridge_get() 980 *is_routable = ETH_P_IP; in batadv_mcast_forw_mode_check_ipv4() 1075 case ETH_P_IP: in batadv_mcast_forw_mode_check() 1105 case ETH_P_IP: in batadv_mcast_forw_want_all_ip_count() 1129 case ETH_P_IP: in batadv_mcast_forw_rtr_count() 1222 case ETH_P_IP: in batadv_mcast_forw_ip_node_get() 1327 case ETH_P_IP: in batadv_mcast_forw_rtr_node_get() 1574 case ETH_P_IP: in batadv_mcast_forw_want_all() [all …]
|
| /linux/drivers/net/ethernet/netronome/nfp/abm/ |
| A D | cls.c | 68 case htons(ETH_P_IP): in nfp_abm_u32_check_knode() 182 tos_off = proto == htons(ETH_P_IP) ? 16 : 20; in nfp_abm_u32_knode_replace() 244 if (cls_u32->common.protocol != htons(ETH_P_IP) && in nfp_abm_setup_tc_block_cb()
|
| /linux/drivers/net/ethernet/sfc/falcon/ |
| A D | filter.h | 187 spec->ether_type = htons(ETH_P_IP); in ef4_filter_set_ipv4_local() 212 spec->ether_type = htons(ETH_P_IP); in ef4_filter_set_ipv4_full()
|
| /linux/net/802/ |
| A D | fddi.c | 55 if(type != ETH_P_IP && type != ETH_P_IPV6 && type != ETH_P_ARP) in fddi_header() 59 if(type == ETH_P_IP || type == ETH_P_IPV6 || type == ETH_P_ARP) in fddi_header()
|
| /linux/drivers/net/ethernet/qlogic/qede/ |
| A D | qede_filter.c | 369 if (skb->protocol == htons(ETH_P_IP)) { in qede_compare_ip_addr() 445 if (skb->protocol != htons(ETH_P_IP) && in qede_rx_flow_steer() 449 if (skb->protocol == htons(ETH_P_IP)) { in qede_rx_flow_steer() 502 if (skb->protocol == htons(ETH_P_IP)) { in qede_rx_flow_steer() 1403 if (t->eth_proto == htons(ETH_P_IP)) in qede_flow_get_min_header_size() 1419 if (a->eth_proto != htons(ETH_P_IP) || in qede_flow_spec_ipv4_cmp() 1420 b->eth_proto != htons(ETH_P_IP)) in qede_flow_spec_ipv4_cmp() 1794 tuple->eth_proto = htons(ETH_P_IP); in qede_flow_parse_tcp_v4() 1814 tuple->eth_proto = htons(ETH_P_IP); in qede_flow_parse_udp_v4() 1840 if (proto != htons(ETH_P_IP) && in qede_parse_flow_attr() [all …]
|
| /linux/drivers/net/ethernet/sfc/ |
| A D | filter.h | 213 spec->ether_type = htons(ETH_P_IP); in efx_filter_set_ipv4_local() 238 spec->ether_type = htons(ETH_P_IP); in efx_filter_set_ipv4_full()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| A D | en_accel.h | 63 case htons(ETH_P_IP): in mlx5e_tx_tunnel_accel() 83 swp_spec.tun_l3_proto = htons(ETH_P_IP); in mlx5e_tx_tunnel_accel()
|
| /linux/net/netfilter/ |
| A D | nft_chain_filter.c | 171 case htons(ETH_P_IP): in nft_do_chain_inet_ingress() 240 case htons(ETH_P_IP): in nft_do_chain_bridge() 295 case htons(ETH_P_IP): in nft_do_chain_netdev()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | en_selftest.c | 110 ethh->h_proto = htons(ETH_P_IP); in mlx5e_test_get_udp_skb() 142 skb->protocol = htons(ETH_P_IP); in mlx5e_test_get_udp_skb() 220 lbtp->pt.type = htons(ETH_P_IP); in mlx5e_test_loopback_setup()
|
| A D | en_arfs.c | 462 if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_TCP) in arfs_get_table() 464 if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_UDP) in arfs_get_table() 523 if (tuple->etype == htons(ETH_P_IP)) { in arfs_add_rule() 637 if (tuple->etype == htons(ETH_P_IP)) { in arfs_alloc_rule() 664 if (tuple->etype == htons(ETH_P_IP)) in arfs_cmp() 702 if (fk.basic.n_proto != htons(ETH_P_IP) && in mlx5e_rx_flow_steer()
|