Home
last modified time | relevance | path

Searched refs:ETH_P_IP (Results 1 – 25 of 457) sorted by relevance

12345678910>>...19

/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c113 .addr_proto = ETH_P_IP,
115 .n_proto = __bpf_constant_htons(ETH_P_IP),
157 .addr_proto = ETH_P_IP,
159 .n_proto = __bpf_constant_htons(ETH_P_IP),
205 .addr_proto = ETH_P_IP,
207 .n_proto = __bpf_constant_htons(ETH_P_IP),
231 .addr_proto = ETH_P_IP,
379 .addr_proto = ETH_P_IP,
408 .addr_proto = ETH_P_IP,
459 .addr_proto = ETH_P_IP,
[all …]
/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c248 eth.h_proto = bpf_htons(ETH_P_IP); in __encap_ipv4()
437 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none()
438 return encap_ipv4(skb, IPPROTO_IPIP, ETH_P_IP); in __encap_ipip_none()
446 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_none()
447 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_IP); in __encap_gre_none()
455 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_mpls()
464 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_eth()
473 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_none()
474 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_IP); in __encap_udp_none()
512 return encap_ipv4(skb, IPPROTO_IPV6, ETH_P_IP); in __encap_sit_none()
[all …]
H A Dtest_tc_link.c38 if (skb->protocol != __bpf_constant_htons(ETH_P_IP)) in tc1()
42 seen_eth = eth.h_proto == bpf_htons(ETH_P_IP); in tc1()
96 if (skb->protocol != __bpf_constant_htons(ETH_P_IP)) in tc7()
H A Dip_check_defrag.c9 #define ETH_P_IP 0x0800 macro
95 case ETH_P_IP: in defrag()
H A Dxdp_redirect_map.c51 if (bpf_htons(eth->h_proto) == ETH_P_IP) { in xdp_count()
98 if (eth->h_proto == bpf_htons(ETH_P_IP)) { in store_mac()
H A Dtest_tc_neigh.c93 case __bpf_constant_htons(ETH_P_IP): in tc_dst()
118 case __bpf_constant_htons(ETH_P_IP): in tc_src()
H A Dexceptions.c10 #ifndef ETH_P_IP
11 #define ETH_P_IP 0x0800 macro
35 if (i == ETH_P_IP) in global2static()
H A Dxdp_flowtable.c7 #define ETH_P_IP 0x0800 macro
83 case bpf_htons(ETH_P_IP): { in xdp_flowtable_do_lookup()
/linux-6.15/samples/bpf/
H A Dtc_l2_redirect_kern.c50 if (eth_proto == htons(ETH_P_IP)) in is_vip_addr()
73 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_forward()
122 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_iptun_ingress_redirect()
161 if (eth->h_proto == htons(ETH_P_IP)) { in _l2_to_ip6tun_ingress_redirect()
210 if (eth->h_proto == htons(ETH_P_IP)) { in _drop_non_tun_vip()
H A Dxdp_fwd_kern.c62 if (h_proto == htons(ETH_P_IP)) { in xdp_fwd_flags()
133 if (h_proto == htons(ETH_P_IP)) in xdp_fwd_flags()
H A Dsockex3_kern.c140 parse_eth_proto(skb, ETH_P_IP); in parse_ip_proto()
241 parse_eth_proto(skb, ETH_P_IP); in bpf_func_mpls()
284 case ETH_P_IP: in parse_eth_proto()
/linux-6.15/include/net/
H A Dinet_ecn.h175 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()
H A Dtun_proto.h20 return htons(ETH_P_IP); in tun_p_to_eth_p()
36 case htons(ETH_P_IP): in tun_p_from_eth_p()
/linux-6.15/tools/testing/selftests/bpf/
H A Dxdp_metadata.h4 #ifndef ETH_P_IP
5 #define ETH_P_IP 0x0800 macro
/linux-6.15/tools/testing/selftests/net/
H A Dnat6to4.bpf.c92 eth2.h_proto = bpf_htons(ETH_P_IP); // But replace the ethertype in sched_cls_ingress6_nat_6_prog()
130 if (bpf_skb_change_proto(skb, bpf_htons(ETH_P_IP), 0)) in sched_cls_ingress6_nat_6_prog()
159 if (skb->protocol != bpf_htons(ETH_P_IP)) in sched_cls_egress4_snat4_prog()
167 if (eth->h_proto != bpf_htons(ETH_P_IP)) in sched_cls_egress4_snat4_prog()
H A Dpsock_snd.c109 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()
/linux-6.15/include/linux/
H A Dvirtio_net.h16 return protocol == cpu_to_be16(ETH_P_IP); in virtio_net_hdr_match_proto()
21 return protocol == cpu_to_be16(ETH_P_IP) || in virtio_net_hdr_match_proto()
38 skb->protocol = cpu_to_be16(ETH_P_IP); in virtio_net_hdr_set_proto()
136 skb->protocol == htons(ETH_P_IP)) { in virtio_net_hdr_to_skb()
/linux-6.15/net/tipc/
H A Dudp_media.c108 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()
179 if (dst->proto == htons(ETH_P_IP)) { in tipc_udp_xmit()
323 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_rcast_add()
348 src.proto = htons(ETH_P_IP); in tipc_udp_rcast_disc()
414 if (ntohs(remote->proto) == ETH_P_IP) { in enable_mcast()
432 if (ntohs(addr->proto) == ETH_P_IP) { in __tipc_nl_add_udp_addr()
594 addr->proto = htons(ETH_P_IP); in tipc_parse_udp_addr()
729 if (local.proto == htons(ETH_P_IP)) { in tipc_udp_enable()
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_ttc.c90 .etype = ETH_P_IP,
98 .etype = ETH_P_IP,
106 .etype = ETH_P_IP,
114 .etype = ETH_P_IP,
122 .etype = ETH_P_IP,
137 .etype = ETH_P_IP,
145 .etype = ETH_P_IP,
153 .etype = ETH_P_IP,
251 if (ethertype == ETH_P_IP) in mlx5_etype_to_ipv()
/linux-6.15/drivers/net/arcnet/
H A Drfc1051.c108 return htons(ETH_P_IP); in type_trans()
118 return htons(ETH_P_IP); in type_trans()
171 case ETH_P_IP: in build_header()
/linux-6.15/net/batman-adv/
H A Dmulticast.c203 if (!br_multicast_has_router_adjacent(dev, ETH_P_IP)) in batadv_mcast_mla_rtr_flags_bridge_get()
303 qr4->exists = br_multicast_has_querier_anywhere(dev, ETH_P_IP); in batadv_mcast_mla_flags_get()
304 qr4->shadowing = br_multicast_has_querier_adjacent(dev, ETH_P_IP); in batadv_mcast_mla_flags_get()
561 if (src->proto == htons(ETH_P_IP)) in batadv_mcast_mla_br_addr_cpy()
604 if (br_ip_entry->addr.proto == htons(ETH_P_IP)) { in batadv_mcast_mla_bridge_get()
1013 *is_routable = ETH_P_IP; in batadv_mcast_forw_mode_check_ipv4()
1108 case ETH_P_IP: in batadv_mcast_forw_mode_check()
1138 case ETH_P_IP: in batadv_mcast_forw_want_all_ip_count()
1162 case ETH_P_IP: in batadv_mcast_forw_rtr_count()
1430 case ETH_P_IP: in batadv_mcast_forw_want_all()
[all …]
/linux-6.15/drivers/net/ethernet/netronome/nfp/abm/
H A Dcls.c68 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-6.15/drivers/net/ethernet/sfc/falcon/
H A Dfilter.h187 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-6.15/drivers/infiniband/sw/rxe/
H A Drxe_icrc.c44 (skb->protocol == htons(ETH_P_IP) ? in rxe_icrc_hdr()
58 if (skb->protocol == htons(ETH_P_IP)) { /* IPv4 */ in rxe_icrc_hdr()
/linux-6.15/net/802/
H A Dfddi.c55 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()

12345678910>>...19