Home
last modified time | relevance | path

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

12345678910>>...21

/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c111 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
122 .addr_proto = ETH_P_IP,
124 .n_proto = __bpf_constant_htons(ETH_P_IP),
153 .vlan_proto = __bpf_constant_htons(ETH_P_IP),
164 .addr_proto = ETH_P_IP,
166 .n_proto = __bpf_constant_htons(ETH_P_IP),
197 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
210 .addr_proto = ETH_P_IP,
212 .n_proto = __bpf_constant_htons(ETH_P_IP),
223 .eth.h_proto = __bpf_constant_htons(ETH_P_IP),
[all …]
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/progs/
H A Dtest_tc_tunnel.c209 eth.h_proto = bpf_htons(ETH_P_IP); in encap_ipv4()
315 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_ipip_none()
316 return encap_ipv4(skb, IPPROTO_IPIP, ETH_P_IP); in __encap_ipip_none()
324 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_none()
325 return encap_ipv4(skb, IPPROTO_GRE, ETH_P_IP); in __encap_gre_none()
333 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_mpls()
342 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_gre_eth()
351 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_none()
352 return encap_ipv4(skb, IPPROTO_UDP, ETH_P_IP); in __encap_udp_none()
360 if (skb->protocol == __bpf_constant_htons(ETH_P_IP)) in __encap_udp_mpls()
[all …]
H A Dtest_tc_neigh.c107 case __bpf_constant_htons(ETH_P_IP): in tc_dst()
131 case __bpf_constant_htons(ETH_P_IP): in tc_src()
/OK3568_Linux_fs/kernel/samples/bpf/
H A Dtc_l2_redirect_kern.c50 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()
H A Dsockex3_kern.c53 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()
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()
/OK3568_Linux_fs/kernel/include/linux/
H A Dvirtio_net.h14 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()
/OK3568_Linux_fs/kernel/include/net/
H A Dinet_ecn.h177 case cpu_to_be16(ETH_P_IP): in INET_ECN_set_ce()
196 case cpu_to_be16(ETH_P_IP): in INET_ECN_set_ect1()
277 case htons(ETH_P_IP): in IP_ECN_decapsulate()
296 case htons(ETH_P_IP): in IP6_ECN_decapsulate()
H A Dtun_proto.h19 return htons(ETH_P_IP); in tun_p_to_eth_p()
35 case htons(ETH_P_IP): in tun_p_from_eth_p()
/OK3568_Linux_fs/kernel/net/tipc/
H A Dudp_media.c102 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_is_mcast_addr()
128 if (ntohs(ua->proto) == ETH_P_IP) in tipc_udp_addr2str()
170 if (dst->proto == htons(ETH_P_IP)) { in tipc_udp_xmit()
314 if (ntohs(addr->proto) == ETH_P_IP) in tipc_udp_rcast_add()
339 src.proto = htons(ETH_P_IP); in tipc_udp_rcast_disc()
405 if (ntohs(remote->proto) == ETH_P_IP) { in enable_mcast()
421 if (ntohs(addr->proto) == ETH_P_IP) { in __tipc_nl_add_udp_addr()
583 addr->proto = htons(ETH_P_IP); in tipc_parse_udp_addr()
718 if (local.proto == htons(ETH_P_IP)) { in tipc_udp_enable()
/OK3568_Linux_fs/kernel/tools/testing/selftests/net/
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()
/OK3568_Linux_fs/kernel/drivers/net/arcnet/
H A Drfc1051.c107 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()
/OK3568_Linux_fs/kernel/drivers/infiniband/sw/rxe/
H A Drxe_icrc.c21 (skb->protocol == htons(ETH_P_IP) ? in rxe_icrc_hdr()
35 if (skb->protocol == htons(ETH_P_IP)) { /* IPv4 */ in rxe_icrc_hdr()
H A Drxe_recv.c125 if (skb->protocol == htons(ETH_P_IP)) { in check_addr()
245 if (skb->protocol == htons(ETH_P_IP)) in rxe_rcv_mcast_pkt()
322 if (skb->protocol == htons(ETH_P_IP)) { in rxe_chk_dgid()
386 else if (skb->protocol == htons(ETH_P_IP)) in rxe_rcv()
/OK3568_Linux_fs/kernel/net/batman-adv/
H A Dmulticast.c305 qr4->exists = br_multicast_has_querier_anywhere(dev, ETH_P_IP); in batadv_mcast_mla_flags_get()
306 qr4->shadowing = br_multicast_has_querier_adjacent(dev, ETH_P_IP); in batadv_mcast_mla_flags_get()
564 if (src->proto == htons(ETH_P_IP)) in batadv_mcast_mla_br_addr_cpy()
607 if (br_ip_entry->addr.proto == htons(ETH_P_IP)) { in batadv_mcast_mla_bridge_get()
1014 *is_routable = ETH_P_IP; in batadv_mcast_forw_mode_check_ipv4()
1109 case ETH_P_IP: in batadv_mcast_forw_mode_check()
1139 case ETH_P_IP: in batadv_mcast_forw_want_all_ip_count()
1163 case ETH_P_IP: in batadv_mcast_forw_rtr_count()
1256 case ETH_P_IP: in batadv_mcast_forw_ip_node_get()
1361 case ETH_P_IP: in batadv_mcast_forw_rtr_node_get()
[all …]
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/net/wimax/i2400m/
H A Dnetdev.c480 cpu_to_be16(ETH_P_IP)); in i2400m_net_rx()
483 skb->protocol = htons(ETH_P_IP); in i2400m_net_rx()
531 cpu_to_be16(ETH_P_IP)); in i2400m_net_erx()
534 skb->protocol = htons(ETH_P_IP); in i2400m_net_erx()
/OK3568_Linux_fs/app/forlinx/quectelCM/libmnl/dhcp/
H A Dpacket.c39 if((s = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP))) < 0) { in open_raw_socket()
45 bindaddr.sll_protocol = htons(ETH_P_IP); in open_raw_socket()
133 destaddr.sll_protocol = htons(ETH_P_IP); in send_packet()
/OK3568_Linux_fs/kernel/net/bridge/
H A Dbr_mdb.c78 case htons(ETH_P_IP): in __mdb_entry_to_br_ip()
113 case htons(ETH_P_IP): in __mdb_fill_srcs()
174 if (mp->addr.proto == htons(ETH_P_IP)) in __mdb_fill_info()
193 case htons(ETH_P_IP): in __mdb_fill_info()
431 case htons(ETH_P_IP): in rtnl_mdb_nlmsg_size()
516 if (mp->addr.proto == htons(ETH_P_IP)) in br_mdb_switchdev_host_port()
562 if (mp->addr.proto == htons(ETH_P_IP)) in br_mdb_notify()
680 if (entry->addr.proto == htons(ETH_P_IP)) { in is_valid_mdb_entry()
717 case htons(ETH_P_IP): in is_valid_mdb_source()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_selftest.c133 ethh->h_proto = htons(ETH_P_IP); in mlx5e_test_get_udp_skb()
165 skb->protocol = htons(ETH_P_IP); in mlx5e_test_get_udp_skb()
243 lbtp->pt.type = htons(ETH_P_IP); in mlx5e_test_loopback_setup()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/qlogic/qede/
H A Dqede_filter.c369 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()
1351 if (fltr->tuple.eth_proto == htons(ETH_P_IP)) { in qede_get_cls_rule_entry()
1412 if (t->eth_proto == htons(ETH_P_IP)) in qede_flow_get_min_header_size()
1428 if (a->eth_proto != htons(ETH_P_IP) || in qede_flow_spec_ipv4_cmp()
1429 b->eth_proto != htons(ETH_P_IP)) in qede_flow_spec_ipv4_cmp()
1803 tuple->eth_proto = htons(ETH_P_IP); in qede_flow_parse_tcp_v4()
1823 tuple->eth_proto = htons(ETH_P_IP); in qede_flow_parse_udp_v4()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Den_accel.h63 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/sfc/
H A Dfilter.h214 spec->ether_type = htons(ETH_P_IP); in efx_filter_set_ipv4_local()
239 spec->ether_type = htons(ETH_P_IP); in efx_filter_set_ipv4_full()

12345678910>>...21