| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | flow_dissector.c | 102 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 113 .addr_proto = ETH_P_IP, 115 .n_proto = __bpf_constant_htons(ETH_P_IP), 146 .vlan_proto = __bpf_constant_htons(ETH_P_IP), 157 .addr_proto = ETH_P_IP, 159 .n_proto = __bpf_constant_htons(ETH_P_IP), 192 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), 205 .addr_proto = ETH_P_IP, 207 .n_proto = __bpf_constant_htons(ETH_P_IP), 219 .eth.h_proto = __bpf_constant_htons(ETH_P_IP), [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_tc_tunnel.c | 236 eth.h_proto = bpf_htons(ETH_P_IP); in __encap_ipv4() 424 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in encap_ipv6_ipip6() 425 return encap_ipv4(skb, IPPROTO_IPIP, ETH_P_IP); in encap_ipv6_ipip6() 433 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) 434 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_IP); 442 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) 451 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) 460 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) 461 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_IP); 469 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) [all...] |
| H A D | ip_check_defrag.c | 9 #define ETH_P_IP 0x0800 macro 90 case ETH_P_IP: in defrag()
|
| H 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()
|
| H A D | exceptions.c | 10 #ifndef ETH_P_IP 11 #define ETH_P_IP 0x0800 macro 35 if (i == ETH_P_IP) in global2static()
|
| H A D | xdp_flowtable.c | 7 #define ETH_P_IP 0x0800 macro 83 case bpf_htons(ETH_P_IP): { in xdp_flowtable_do_lookup()
|
| H A D | bpf_flow.c | 121 case bpf_htons(ETH_P_IP): in parse_eth_proto() 148 if (keys->n_proto == bpf_htons(ETH_P_IP)) { in _dissect() 186 return parse_eth_proto(skb, bpf_htons(ETH_P_IP)); in parse_ip_proto() 291 keys->addr_proto = ETH_P_IP; in PROG()
|
| /linux/include/net/ |
| H 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()
|
| H A D | tun_proto.h | 20 return htons(ETH_P_IP); in tun_p_to_eth_p() 36 case htons(ETH_P_IP): in tun_p_from_eth_p()
|
| /linux/tools/testing/selftests/net/ |
| H A D | nat6to4.bpf.c | 92 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 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()
|
| H 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/tools/testing/selftests/bpf/ |
| H A D | xdp_metadata.h | 4 #ifndef ETH_P_IP 5 #define ETH_P_IP 0x0800 macro
|
| /linux/include/linux/ |
| H A D | virtio_net.h | 16 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() 137 skb->protocol == htons(ETH_P_IP)) { in __virtio_net_hdr_to_skb() 329 htons(ETH_P_IP)); in virtio_net_hdr_tnl_to_skb()
|
| /linux/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() 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/drivers/net/arcnet/ |
| H A D | rfc1051.c | 108 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/net/batman-adv/ |
| H A D | multicast.c | 203 if (!br_multicast_has_router_adjacent(dev, ETH_P_IP)) in batadv_mcast_mla_rtr_flags_bridge_get() 301 qr4->exists = br_multicast_has_querier_anywhere(dev, ETH_P_IP); in batadv_mcast_mla_flags_get() 302 qr4->shadowing = br_multicast_has_querier_adjacent(dev, ETH_P_IP); in batadv_mcast_mla_flags_get() 559 if (src->proto == htons(ETH_P_IP)) in batadv_mcast_mla_br_addr_cpy() 602 if (br_ip_entry->addr.proto == htons(ETH_P_IP)) { in batadv_mcast_mla_bridge_get() 1011 *is_routable = ETH_P_IP; in batadv_mcast_forw_mode_check_ipv4() 1106 case ETH_P_IP: in batadv_mcast_forw_mode_check() 1136 case ETH_P_IP: in batadv_mcast_forw_want_all_ip_count() 1160 case ETH_P_IP: in batadv_mcast_forw_rtr_count() 1428 case ETH_P_IP: in batadv_mcast_forw_want_all() [all …]
|
| /linux/drivers/net/ethernet/netronome/nfp/abm/ |
| H 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/net/802/ |
| H 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/sfc/falcon/ |
| H 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/samples/bpf/ |
| H A D | sockex3_kern.c | 140 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()
|
| H 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/drivers/net/ethernet/intel/ice/ |
| H A D | ice_arfs.c | 320 if (fk->basic.n_proto == htons(ETH_P_IP)) { in ice_arfs_build_entry() 368 if (l3_proto == htons(ETH_P_IP) && l4_proto == IPPROTO_UDP) in ice_arfs_is_perfect_flow_set() 370 else if (l3_proto == htons(ETH_P_IP) && l4_proto == IPPROTO_TCP) in ice_arfs_is_perfect_flow_set() 408 return n_proto == htons(ETH_P_IP) && in ice_arfs_cmp() 468 if ((n_proto == htons(ETH_P_IP) && !ip_is_fragment(ip_hdr(skb))) || in ice_rx_flow_steer()
|
| /linux/drivers/net/wireless/intel/iwlwifi/mei/ |
| H A D | net.c | 96 arp->ar_pro != htons(ETH_P_IP)) in iwl_mei_rx_filter_arp() 309 case htons(ETH_P_IP): in iwl_mei_rx_pass_to_csme() 379 if (origskb->protocol != htons(ETH_P_IP) || in iwl_mei_tx_copy_to_csme()
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H 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()
|