/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | flow_dissector.c | 124 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 134 .addr_proto = ETH_P_IPV6, 136 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 170 .vlan_proto2 = __bpf_constant_htons(ETH_P_IPV6), 181 .addr_proto = ETH_P_IPV6, 183 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 242 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), 255 .addr_proto = ETH_P_IPV6, 257 .n_proto = __bpf_constant_htons(ETH_P_IPV6), 269 .eth.h_proto = __bpf_constant_htons(ETH_P_IPV6), [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
H A D | test_tc_tunnel.c | 421 eth.h_proto = bpf_htons(ETH_P_IPV6); in encap_ipv6_ipip6() 511 if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6)) in __encap_sit_none() 520 if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6)) in __encap_ip6tnl_none() 521 return encap_ipv6(skb, IPPROTO_IPV6, ETH_P_IPV6); in __encap_ip6tnl_none() 538 if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6)) in __encap_ip6gre_none() 539 return encap_ipv6(skb, IPPROTO_GRE, ETH_P_IPV6); in __encap_ip6gre_none() 547 if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6)) in __encap_ip6gre_mpls() 556 if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6)) in __encap_ip6gre_eth() 565 if (skb->protocol == __bpf_constant_htons(ETH_P_IPV6)) in __encap_ip6udp_none() 566 return encap_ipv6(skb, IPPROTO_UDP, ETH_P_IPV6); in __encap_ip6udp_none() [all …]
|
H A D | ip_check_defrag.c | 10 #define ETH_P_IPV6 0x86DD macro 97 case ETH_P_IPV6: in defrag()
|
H A D | test_tc_neigh.c | 96 case __bpf_constant_htons(ETH_P_IPV6): in tc_dst() 121 case __bpf_constant_htons(ETH_P_IPV6): in tc_src()
|
H A D | xdp_flowtable.c | 8 #define ETH_P_IPV6 0x86dd macro 108 case bpf_htons(ETH_P_IPV6): { in xdp_flowtable_do_lookup()
|
H A D | bpf_flow.c | 124 case bpf_htons(ETH_P_IPV6): in parse_eth_proto() 192 return parse_eth_proto(skb, bpf_htons(ETH_P_IPV6)); in parse_ip_proto() 333 keys->addr_proto = ETH_P_IPV6; in PROG()
|
H A D | test_xdp.c | 196 set_ethhdr(new_eth, old_eth, tnl, bpf_htons(ETH_P_IPV6)); in handle_ipv6() 227 else if (h_proto == bpf_htons(ETH_P_IPV6)) in _xdp_tx_iptunnel()
|
/linux/include/net/ |
H A D | inet_ecn.h | 181 case cpu_to_be16(ETH_P_IPV6): in INET_ECN_set_ce() 199 case cpu_to_be16(ETH_P_IPV6): in skb_get_dsfield() 217 case cpu_to_be16(ETH_P_IPV6): in INET_ECN_set_ect1() 295 case htons(ETH_P_IPV6): in IP_ECN_decapsulate() 314 case htons(ETH_P_IPV6): in IP6_ECN_decapsulate()
|
H A D | tun_proto.h | 22 return htons(ETH_P_IPV6); in tun_p_to_eth_p() 38 case htons(ETH_P_IPV6): in tun_p_from_eth_p()
|
H A D | ip_tunnels.h | 449 case htons(ETH_P_IPV6): in pskb_inet_may_pull_reason() 485 case htons(ETH_P_IPV6): in skb_vlan_inet_prepare() 555 else if (payload_protocol == htons(ETH_P_IPV6)) in ip_tunnel_get_dsfield() 566 if (payload_protocol == htons(ETH_P_IPV6)) in ip_tunnel_get_flowlabel() 579 else if (payload_protocol == htons(ETH_P_IPV6)) in ip_tunnel_get_ttl()
|
/linux/tools/testing/selftests/net/ |
H A D | nat6to4.bpf.c | 62 if (skb->protocol != bpf_htons(ETH_P_IPV6)) in sched_cls_ingress6_nat_6_prog() 70 if (eth->h_proto != bpf_htons(ETH_P_IPV6)) in sched_cls_ingress6_nat_6_prog() 227 eth2.h_proto = bpf_htons(ETH_P_IPV6); // But replace the ethertype in sched_cls_egress4_snat4_prog() 254 if (bpf_skb_change_proto(skb, bpf_htons(ETH_P_IPV6), 0)) in sched_cls_egress4_snat4_prog()
|
/linux/include/linux/ |
H A D | virtio_net.h | 18 return protocol == cpu_to_be16(ETH_P_IPV6); in virtio_net_hdr_match_proto() 22 protocol == cpu_to_be16(ETH_P_IPV6); in virtio_net_hdr_match_proto() 41 skb->protocol = cpu_to_be16(ETH_P_IPV6); in virtio_net_hdr_set_proto() 137 skb->protocol = htons(ETH_P_IPV6); in virtio_net_hdr_to_skb()
|
/linux/tools/testing/selftests/bpf/ |
H A D | xdp_metadata.h | 8 #ifndef ETH_P_IPV6 9 #define ETH_P_IPV6 0x86DD macro
|
/linux/net/ipv6/ |
H A D | seg6_iptunnel.c | 121 } else if (!do_flowlabel && skb->protocol == htons(ETH_P_IPV6)) { in seg6_make_flowlabel() 157 if (skb->protocol == htons(ETH_P_IPV6)) { in __seg6_do_srh_encap() 253 if (skb->protocol == htons(ETH_P_IPV6)) { in seg6_do_srh_encap_red() 390 if (skb->protocol != htons(ETH_P_IPV6)) in seg6_do_srh() 403 if (skb->protocol == htons(ETH_P_IPV6)) in seg6_do_srh() 422 skb->protocol = htons(ETH_P_IPV6); in seg6_do_srh() 447 skb->protocol = htons(ETH_P_IPV6); in seg6_do_srh() 538 case htons(ETH_P_IPV6): in seg6_input_nf() 623 case htons(ETH_P_IPV6): in seg6_output_nf()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | fs_ttc.c | 75 .etype = ETH_P_IPV6, 83 .etype = ETH_P_IPV6, 91 .etype = ETH_P_IPV6, 99 .etype = ETH_P_IPV6, 107 .etype = ETH_P_IPV6, 122 .etype = ETH_P_IPV6, 130 .etype = ETH_P_IPV6, 138 .etype = ETH_P_IPV6, 235 if (ethertype == ETH_P_IPV6) in mlx5_etype_to_ipv()
|
/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/samples/bpf/ |
H A D | sockex3_kern.c | 143 parse_eth_proto(skb, ETH_P_IPV6); in parse_ip_proto() 243 parse_eth_proto(skb, ETH_P_IPV6); in bpf_func_mpls() 287 case ETH_P_IPV6: in parse_eth_proto()
|
H A D | xdp_fwd_kern.c | 79 } else if (h_proto == htons(ETH_P_IPV6)) { in xdp_fwd_flags() 135 else if (h_proto == htons(ETH_P_IPV6)) in xdp_fwd_flags()
|
H A D | sockex2_kern.c | 122 else if (proto == ETH_P_IPV6) in flow_dissector() 160 else if (proto == ETH_P_IPV6) in flow_dissector()
|
H A D | net_shared.h | 13 #define ETH_P_IPV6 0x86DD macro
|
H A D | xdp_tx_iptunnel_kern.c | 199 set_ethhdr(new_eth, old_eth, tnl, htons(ETH_P_IPV6)); in handle_ipv6() 230 else if (h_proto == htons(ETH_P_IPV6)) in _xdp_tx_iptunnel()
|
/linux/net/tipc/ |
H A D | udp_media.c | 136 else if (ntohs(ua->proto) == ETH_P_IPV6) in tipc_udp_addr2str() 326 else if (ntohs(addr->proto) == ETH_P_IPV6) in tipc_udp_rcast_add() 356 src.proto = htons(ETH_P_IPV6); in tipc_udp_rcast_disc() 443 } else if (ntohs(addr->proto) == ETH_P_IPV6) { in __tipc_nl_add_udp_addr() 603 addr->proto = htons(ETH_P_IPV6); in tipc_parse_udp_addr() 747 } else if (local.proto == htons(ETH_P_IPV6)) { in tipc_udp_enable()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | ipsec_rxtx.c | 94 if (skb->protocol == htons(ETH_P_IPV6)) in mlx5e_ipsec_set_swp() 238 skb->protocol != htons(ETH_P_IPV6)))) in mlx5e_ipsec_tx_build_eseg() 285 skb->protocol != htons(ETH_P_IPV6)))) { in mlx5e_ipsec_handle_tx_skb()
|
/linux/net/netfilter/ |
H A D | nft_inner.c | 69 case htons(ETH_P_IPV6): in nft_inner_parse_l2l3() 102 llproto = htons(ETH_P_IPV6); in nft_inner_parse_l2l3() 137 case htons(ETH_P_IPV6): { in nft_inner_parse_l2l3()
|
/linux/net/xfrm/ |
H A D | xfrm_output.c | 275 bool small_ipv6 = (skb->protocol == htons(ETH_P_IPV6)) && (skb->len <= IPV6_MIN_MTU); in xfrm4_tunnel_encap_add() 437 skb->protocol = htons(ETH_P_IPV6); in xfrm6_prepare_output() 700 case ETH_P_IPV6: in xfrm_get_inner_ipproto() 854 skb->protocol = htons(ETH_P_IPV6); in xfrm6_tunnel_check_size() 893 case htons(ETH_P_IPV6): in xfrm_inner_extract_output() 907 else if (skb->protocol == htons(ETH_P_IPV6) && in xfrm_local_error()
|