Home
last modified time | relevance | path

Searched refs:nexthdr (Results 1 – 25 of 56) sorted by relevance

123

/tools/testing/selftests/bpf/progs/
A Dbpf_flow.c55 __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 Dfexit_bpf2bpf.c129 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 Dtest_assign_reuse.c135 if (ip6h->nexthdr == IPPROTO_TCP) in tc_main()
137 else if (ip6h->nexthdr == IPPROTO_UDP) in tc_main()
A Dxdp_flowtable.c121 ip6h->nexthdr)) in xdp_flowtable_do_lookup()
125 tuple.l4_protocol = ip6h->nexthdr; in xdp_flowtable_do_lookup()
A Dtest_xdp.c167 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 Dtest_xdp_loop.c163 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 Ddecap_sanity.c45 if (ip6h.nexthdr != IPPROTO_UDP) in decap_sanity()
A Dtest_xdp_dynptr.c185 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 Dip_check_defrag.c42 return ip6h->nexthdr == NEXTHDR_FRAGMENT; in is_frag_v6()
A Dtest_tc_tunnel.c131 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 Dtest_xdp_do_redirect.c75 if (iph->nexthdr != IPPROTO_UDP || *payload != MARK_IN) in check_pkt()
A Dcgroup_skb_sk_lookup_kern.c82 if (ip6h.nexthdr != IPPROTO_TCP) in ingress_lookup()
A Dtest_lwt_ip_encap.c64 hdr.ip6hdr.nexthdr = 47; /* IPPROTO_GRE */ in bpf_lwt_encap_gre6()
A Dtest_migrate_reuseport.c74 if (ipv6->nexthdr != IPPROTO_TCP) in drop_ack()
A Dcrypto_sanity.c32 if (ip6h.nexthdr != IPPROTO_UDP) in skb_dynptr_validate()
A Dtest_pkt_access.c129 proto = ip6h->nexthdr; in test_pkt_access()
A Dxdp_metadata.c60 if (ip6h + 1 < data_end && ip6h->nexthdr == IPPROTO_UDP) in rx()
/tools/testing/selftests/bpf/prog_tests/
A Dflow_dissector.c49 __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 Dkfree_skb.c43 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 Dxdp.c51 ASSERT_EQ(iph6.nexthdr, IPPROTO_IPV6, "ipv6 test_run iph6.nexthdr"); in test_xdp()
A Dparse_tcp_hdr_opt.c17 .pk6_v6.iph.nexthdr = IPPROTO_TCP,
/tools/include/uapi/linux/
A Dseg6.h25 __u8 nexthdr; member
/tools/testing/selftests/net/
A Dnat6to4.bpf.c79 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 Dcsum.c130 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 Dicmps-discard.c234 iph->nexthdr = proto; in set_ip6hdr()
278 uint8_t nexthdr; in icmp6_checksum() member
285 pseudo_header.nexthdr = proto; in icmp6_checksum()

Completed in 29 milliseconds

123