| /tools/testing/selftests/bpf/progs/ |
| A D | bpf_flow.c | 55 __u8 nexthdr; member 256 static __always_inline int parse_ipv6_proto(struct __sk_buff *skb, __u8 nexthdr) in parse_ipv6_proto() argument 260 switch (nexthdr) { in parse_ipv6_proto() 269 return parse_ip_proto(skb, nexthdr); in parse_ipv6_proto() 337 keys->ip_proto = ip6h->nexthdr; in PROG() 343 return parse_ipv6_proto(skb, ip6h->nexthdr); in PROG() 359 keys->ip_proto = ip6h->nexthdr; in PROG() 361 return parse_ipv6_proto(skb, ip6h->nexthdr); in PROG() 375 keys->ip_proto = fragh->nexthdr; in PROG() 389 return parse_ipv6_proto(skb, fragh->nexthdr); in PROG()
|
| A D | fexit_bpf2bpf.c | 129 if (ip6p->nexthdr != 6 || ip6p->payload_len != __bpf_constant_htons(123)) in new_get_skb_ifindex() 136 if (ip6p->nexthdr != 6 || ip6p->payload_len != __bpf_constant_htons(123)) in new_get_skb_ifindex()
|
| A D | test_assign_reuse.c | 135 if (ip6h->nexthdr == IPPROTO_TCP) in tc_main() 137 else if (ip6h->nexthdr == IPPROTO_UDP) in tc_main()
|
| A D | xdp_flowtable.c | 121 ip6h->nexthdr)) in xdp_flowtable_do_lookup() 125 tuple.l4_protocol = ip6h->nexthdr; in xdp_flowtable_do_lookup()
|
| A D | test_xdp.c | 167 dport = get_dport(ip6h + 1, data_end, ip6h->nexthdr); in handle_ipv6() 171 vip.protocol = ip6h->nexthdr; in handle_ipv6() 202 ip6h->nexthdr = IPPROTO_IPV6; in handle_ipv6()
|
| A D | test_xdp_loop.c | 163 dport = get_dport(ip6h + 1, data_end, ip6h->nexthdr); in handle_ipv6() 167 vip.protocol = ip6h->nexthdr; in handle_ipv6() 198 ip6h->nexthdr = IPPROTO_IPV6; in handle_ipv6()
|
| A D | decap_sanity.c | 45 if (ip6h.nexthdr != IPPROTO_UDP) in decap_sanity()
|
| A D | test_xdp_dynptr.c | 185 dport = get_dport(ip6h + 1, ip6h->nexthdr); in handle_ipv6() 189 vip.protocol = ip6h->nexthdr; in handle_ipv6() 220 ip6h->nexthdr = IPPROTO_IPV6; in handle_ipv6()
|
| A D | ip_check_defrag.c | 42 return ip6h->nexthdr == NEXTHDR_FRAGMENT; in is_frag_v6()
|
| A D | test_tc_tunnel.c | 131 iph_inner.protocol = iph6_inner.nexthdr; in __encap_ipv4() 363 h_outer.ip.nexthdr = encap_proto; in __encap_ipv6() 411 h_outer.ip.nexthdr = IPPROTO_IPIP; in encap_ipv6_ipip6() 619 switch (ip6_opt_hdr.nexthdr) { in decap_internal() 693 iph_outer.nexthdr); in decap_ipv6()
|
| A D | test_xdp_do_redirect.c | 75 if (iph->nexthdr != IPPROTO_UDP || *payload != MARK_IN) in check_pkt()
|
| A D | cgroup_skb_sk_lookup_kern.c | 82 if (ip6h.nexthdr != IPPROTO_TCP) in ingress_lookup()
|
| A D | test_lwt_ip_encap.c | 64 hdr.ip6hdr.nexthdr = 47; /* IPPROTO_GRE */ in bpf_lwt_encap_gre6()
|
| A D | test_migrate_reuseport.c | 74 if (ipv6->nexthdr != IPPROTO_TCP) in drop_ack()
|
| A D | crypto_sanity.c | 32 if (ip6h.nexthdr != IPPROTO_UDP) in skb_dynptr_validate()
|
| A D | test_pkt_access.c | 129 proto = ip6h->nexthdr; in test_pkt_access()
|
| A D | xdp_metadata.c | 60 if (ip6h + 1 < data_end && ip6h->nexthdr == IPPROTO_UDP) in rx()
|
| /tools/testing/selftests/bpf/prog_tests/ |
| A D | flow_dissector.c | 49 __u8 nexthdr; member 125 .iph.nexthdr = IPPROTO_TCP, 171 .iph.nexthdr = IPPROTO_TCP, 243 .iph.nexthdr = IPPROTO_FRAGMENT, 245 .ipf.nexthdr = IPPROTO_TCP, 270 .iph.nexthdr = IPPROTO_FRAGMENT, 272 .ipf.nexthdr = IPPROTO_TCP, 293 .iph.nexthdr = IPPROTO_TCP, 316 .iph.nexthdr = IPPROTO_TCP, 339 .iph.nexthdr = IPPROTO_TCP,
|
| A D | kfree_skb.c | 43 if (CHECK(pkt_v6->iph.nexthdr != 6, "check_ip", in on_sample() 44 "iph.nexthdr %x\n", pkt_v6->iph.nexthdr)) in on_sample()
|
| A D | xdp.c | 51 ASSERT_EQ(iph6.nexthdr, IPPROTO_IPV6, "ipv6 test_run iph6.nexthdr"); in test_xdp()
|
| A D | parse_tcp_hdr_opt.c | 17 .pk6_v6.iph.nexthdr = IPPROTO_TCP,
|
| /tools/include/uapi/linux/ |
| A D | seg6.h | 25 __u8 nexthdr; member
|
| /tools/testing/selftests/net/ |
| A D | nat6to4.bpf.c | 79 switch (ip6->nexthdr) { in sched_cls_ingress6_nat_6_prog() 102 .protocol = ip6->nexthdr, // u8 in sched_cls_ingress6_nat_6_prog() 234 .nexthdr = ip4->protocol, // __u8 in sched_cls_egress4_snat4_prog()
|
| /tools/testing/selftests/net/lib/ |
| A D | csum.c | 130 uint8_t nexthdr; member 215 ip6h->nexthdr = proto; in build_packet_ipv6() 290 eh->nexthdr = IPPROTO_TCP; in build_packet_udp_encap() 523 __recv_prepare_packet_filter(fd, offsetof(struct ipv6hdr, nexthdr), in recv_prepare_packet_filter() 630 if (len < sizeof(*eh) || eh->nexthdr != IPPROTO_TCP) in recv_verify_packet_udp_encap() 680 if (len < sizeof(*ip6h) || ip6h->nexthdr != proto) in recv_verify_packet_ipv6()
|
| /tools/testing/selftests/net/tcp_ao/ |
| A D | icmps-discard.c | 234 iph->nexthdr = proto; in set_ip6hdr() 278 uint8_t nexthdr; in icmp6_checksum() member 285 pseudo_header.nexthdr = proto; in icmp6_checksum()
|