Lines Matching refs:skb_ptr
235 static __noinline int parse_icmpv6(struct bpf_dynptr *skb_ptr, __u64 off, in parse_icmpv6() argument
242 icmp_hdr = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in parse_icmpv6()
249 ip6h = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in parse_icmpv6()
259 static __noinline int parse_icmp(struct bpf_dynptr *skb_ptr, __u64 off, in parse_icmp() argument
267 icmp_hdr = bpf_dynptr_slice(skb_ptr, off, buffer_icmp, sizeof(buffer_icmp)); in parse_icmp()
274 iph = bpf_dynptr_slice(skb_ptr, off, buffer_ip, sizeof(buffer_ip)); in parse_icmp()
284 static __noinline bool parse_udp(struct bpf_dynptr *skb_ptr, __u64 off, in parse_udp() argument
290 udp = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in parse_udp()
304 static __noinline bool parse_tcp(struct bpf_dynptr *skb_ptr, __u64 off, in parse_tcp() argument
310 tcp = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in parse_tcp()
327 static __noinline int process_packet(struct bpf_dynptr *skb_ptr, in process_packet() argument
354 ip6h = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in process_packet()
366 action = parse_icmpv6(skb_ptr, off, &pckt); in process_packet()
377 iph = bpf_dynptr_slice(skb_ptr, off, buffer, sizeof(buffer)); in process_packet()
389 action = parse_icmp(skb_ptr, off, &pckt); in process_packet()
401 if (!parse_tcp(skb_ptr, off, &pckt)) in process_packet()
404 if (!parse_udp(skb_ptr, off, &pckt)) in process_packet()