Home
last modified time | relevance | path

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

/samples/bpf/
Dparse_varlen.c83 uint64_t nexthdr; in parse_ipv6() local
89 nexthdr = ip6h->nexthdr; in parse_ipv6()
91 if (nexthdr == IPPROTO_IPIP) { in parse_ipv6()
96 nexthdr = iph->protocol; in parse_ipv6()
97 } else if (nexthdr == IPPROTO_IPV6) { in parse_ipv6()
102 nexthdr = ip6h->nexthdr; in parse_ipv6()
105 if (nexthdr == IPPROTO_TCP) in parse_ipv6()
107 else if (nexthdr == IPPROTO_UDP) in parse_ipv6()
Dtest_cgrp2_tc_kern.c57 ip6h->nexthdr != IPPROTO_ICMPV6) { in handle_egress()
59 eth->h_proto, ip6h->nexthdr); in handle_egress()
Dxdp_tx_iptunnel_kern.c167 dport = get_dport(ip6h + 1, data_end, ip6h->nexthdr); in handle_ipv6()
171 vip.protocol = ip6h->nexthdr; in handle_ipv6()
205 ip6h->nexthdr = IPPROTO_IPV6; in handle_ipv6()
Dxdp1_kern.c39 return ip6h->nexthdr; in parse_ipv6()
Dtc_l2_redirect_kern.c96 if (ip6h->nexthdr != IPPROTO_IPIP && in _l2_to_iptun_ingress_forward()
97 ip6h->nexthdr != IPPROTO_IPV6) in _l2_to_iptun_ingress_forward()
Dxdp2_kern.c55 return ip6h->nexthdr; in parse_ipv6()
Dxdp_fwd_kern.c92 fib_params.l4_protocol = ip6h->nexthdr; in xdp_fwd_flags()
Dhbm_kern.h120 pkti->is_tcp = (ip6h->nexthdr == 6); in hbm_get_pkt_info()
Dsockex2_kern.c90 nhoff + offsetof(struct ipv6hdr, nexthdr)); in parse_ipv6()
Dxdp_redirect_cpu.bpf.c139 return ip6h->nexthdr; in get_proto_ipv6()
430 cpu_hash = SuperFastHash((char *)&cpu_hash, 4, INITVAL + ip6h->nexthdr); in get_ipv6_hash_ip_pair()
Dsockex3_kern.c231 nhoff + offsetof(struct ipv6hdr, nexthdr)); in PROG()