/Linux-v4.19/samples/bpf/ |
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()
|
D | xdp_fwd_kern.c | 62 if (h_proto == htons(ETH_P_IP)) { in xdp_fwd_flags() 113 if (h_proto == htons(ETH_P_IP)) in xdp_fwd_flags()
|
D | sockex3_kern.c | 50 case ETH_P_IP: in parse_eth_proto() 172 parse_eth_proto(skb, ETH_P_IP); in parse_ip_proto() 269 parse_eth_proto(skb, ETH_P_IP); in PROG()
|
D | parse_simple.c | 39 if (eth->h_proto != htons(ETH_P_IP)) in handle_ingress()
|
D | parse_ldabs.c | 31 if (load_half(skb, offsetof(struct ethhdr, h_proto)) != ETH_P_IP) in handle_ingress()
|
D | sockex2_kern.c | 118 if (likely(proto == ETH_P_IP)) in flow_dissector() 156 if (proto == ETH_P_IP) in flow_dissector()
|
/Linux-v4.19/include/net/ |
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()
|
D | inet_ecn.h | 146 case cpu_to_be16(ETH_P_IP): in INET_ECN_set_ce() 212 if (skb->protocol == htons(ETH_P_IP)) in IP_ECN_decapsulate() 227 if (skb->protocol == htons(ETH_P_IP)) in IP6_ECN_decapsulate()
|
/Linux-v4.19/drivers/infiniband/sw/rxe/ |
D | rxe_icrc.c | 48 (skb->protocol == htons(ETH_P_IP) ? in rxe_icrc_hdr() 62 if (skb->protocol == htons(ETH_P_IP)) { /* IPv4 */ in rxe_icrc_hdr()
|
D | rxe_recv.c | 168 if (skb->protocol == htons(ETH_P_IP)) { in check_addr() 288 if (skb->protocol == htons(ETH_P_IP)) in rxe_rcv_mcast_pkt() 339 if (skb->protocol == htons(ETH_P_IP)) { in rxe_match_dgid() 400 else if (skb->protocol == htons(ETH_P_IP)) in rxe_rcv()
|
/Linux-v4.19/net/tipc/ |
D | udp_media.c | 100 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_is_mcast_addr() 126 if (ntohs(ua->proto) == ETH_P_IP) in tipc_udp_addr2str() 166 if (dst->proto == htons(ETH_P_IP)) { in tipc_udp_xmit() 295 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_rcast_add() 320 src.proto = htons(ETH_P_IP); in tipc_udp_rcast_disc() 389 if (ntohs(remote->proto) == ETH_P_IP) { in enable_mcast() 405 if (ntohs(addr->proto) == ETH_P_IP) { in __tipc_nl_add_udp_addr() 571 addr->proto = htons(ETH_P_IP); in tipc_parse_udp_addr() 699 if (local.proto == htons(ETH_P_IP)) { in tipc_udp_enable()
|
/Linux-v4.19/drivers/net/arcnet/ |
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-v4.19/tools/testing/selftests/net/ |
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()
|
/Linux-v4.19/net/ipv4/ |
D | xfrm4_output.c | 35 skb->protocol = htons(ETH_P_IP); in xfrm4_tunnel_check_size() 70 skb->protocol = htons(ETH_P_IP); in xfrm4_prepare_output()
|
D | ip_tunnel.c | 518 if (skb->protocol == htons(ETH_P_IP)) { in tnl_update_pmtu() 572 if (skb->protocol == htons(ETH_P_IP)) in ip_md_tunnel_xmit() 594 if (skb->protocol == htons(ETH_P_IP)) in ip_md_tunnel_xmit() 603 else if (skb->protocol == htons(ETH_P_IP)) in ip_md_tunnel_xmit() 641 if (skb->protocol == htons(ETH_P_IP)) in ip_tunnel_xmit() 662 if (skb->protocol == htons(ETH_P_IP)) { in ip_tunnel_xmit() 706 if (skb->protocol == htons(ETH_P_IP)) { in ip_tunnel_xmit() 761 if (skb->protocol == htons(ETH_P_IP)) in ip_tunnel_xmit() 772 if (skb->protocol == htons(ETH_P_IP) && !tunnel->ignore_df) in ip_tunnel_xmit()
|
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/ |
D | filter.h | 190 spec->ether_type = htons(ETH_P_IP); in ef4_filter_set_ipv4_local() 215 spec->ether_type = htons(ETH_P_IP); in ef4_filter_set_ipv4_full()
|
/Linux-v4.19/net/802/ |
D | fddi.c | 59 if(type != ETH_P_IP && type != ETH_P_IPV6 && type != ETH_P_ARP) in fddi_header() 63 if(type == ETH_P_IP || type == ETH_P_IPV6 || type == ETH_P_ARP) in fddi_header()
|
/Linux-v4.19/drivers/net/wimax/i2400m/ |
D | netdev.c | 495 cpu_to_be16(ETH_P_IP)); in i2400m_net_rx() 498 skb->protocol = htons(ETH_P_IP); in i2400m_net_rx() 546 cpu_to_be16(ETH_P_IP)); in i2400m_net_erx() 549 skb->protocol = htons(ETH_P_IP); in i2400m_net_erx()
|
/Linux-v4.19/drivers/net/ethernet/sfc/ |
D | filter.h | 216 spec->ether_type = htons(ETH_P_IP); in efx_filter_set_ipv4_local() 241 spec->ether_type = htons(ETH_P_IP); in efx_filter_set_ipv4_full()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_arfs.c | 442 return (skb->protocol == htons(ETH_P_IP)) ? in arfs_get_ip_proto() 449 if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_TCP) in arfs_get_table() 451 if (etype == htons(ETH_P_IP) && ip_proto == IPPROTO_UDP) in arfs_get_table() 510 if (tuple->etype == htons(ETH_P_IP)) { in arfs_add_rule() 642 if (tuple->etype == htons(ETH_P_IP)) { in arfs_alloc_rule() 667 if (tuple->etype == htons(ETH_P_IP) && in arfs_cmp_ips() 708 if (skb->protocol != htons(ETH_P_IP) && in mlx5e_rx_flow_steer()
|
D | en_selftest.c | 147 ethh->h_proto = htons(ETH_P_IP); in mlx5e_test_get_udp_skb() 181 skb->protocol = htons(ETH_P_IP); in mlx5e_test_get_udp_skb() 259 lbtp->pt.type = htons(ETH_P_IP); in mlx5e_test_loopback_setup()
|
/Linux-v4.19/net/bridge/ |
D | br_netfilter_hooks.c | 74 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP)) 93 (vlan_proto(skb) == htons(ETH_P_IP) && \ 517 skb->protocol = htons(ETH_P_IP); in br_nf_pre_routing() 535 if (skb->protocol == htons(ETH_P_IP)) in br_nf_forward_finish() 615 skb->protocol = htons(ETH_P_IP); in br_nf_forward_ip() 730 skb->protocol == htons(ETH_P_IP)) { in br_nf_dev_queue_xmit() 820 skb->protocol = htons(ETH_P_IP); in br_nf_post_routing()
|
/Linux-v4.19/net/netfilter/ |
D | nf_flow_table_inet.c | 14 case htons(ETH_P_IP): in nf_flow_offload_inet_hook()
|
/Linux-v4.19/net/batman-adv/ |
D | multicast.c | 229 if (src->proto == htons(ETH_P_IP)) in batadv_mcast_mla_br_addr_cpy() 273 if (all_ipv4 && br_ip_entry->addr.proto == htons(ETH_P_IP)) in batadv_mcast_mla_bridge_get() 558 querier4.exists = br_multicast_has_querier_anywhere(dev, ETH_P_IP); in batadv_mcast_mla_tvlv_update() 559 querier4.shadowing = br_multicast_has_querier_adjacent(dev, ETH_P_IP); in batadv_mcast_mla_tvlv_update() 819 case ETH_P_IP: in batadv_mcast_forw_mode_check() 847 case ETH_P_IP: in batadv_mcast_forw_want_all_ip_count() 941 case ETH_P_IP: in batadv_mcast_forw_ip_node_get()
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qede/ |
D | qede_filter.c | 391 if (skb->protocol == htons(ETH_P_IP)) { in qede_compare_ip_addr() 467 if (skb->protocol != htons(ETH_P_IP) && in qede_rx_flow_steer() 471 if (skb->protocol == htons(ETH_P_IP)) { in qede_rx_flow_steer() 524 if (skb->protocol == htons(ETH_P_IP)) { in qede_rx_flow_steer() 1424 if (fltr->tuple.eth_proto == htons(ETH_P_IP)) { in qede_get_cls_rule_entry() 1485 if (t->eth_proto == htons(ETH_P_IP)) in qede_flow_get_min_header_size() 1501 if (a->eth_proto != htons(ETH_P_IP) || in qede_flow_spec_ipv4_cmp() 1502 b->eth_proto != htons(ETH_P_IP)) in qede_flow_spec_ipv4_cmp() 1701 t->eth_proto = htons(ETH_P_IP); in qede_flow_spec_to_tuple_ipv4_common() 2146 tuple->eth_proto = htons(ETH_P_IP); in qede_tc_parse_tcp_v4() [all …]
|