Lines Matching +full:uapi +full:- +full:header
1 // SPDX-License-Identifier: GPL-2.0
10 #include <uapi/linux/bpf.h>
11 #include <uapi/linux/tcp.h>
12 #include <uapi/linux/if_ether.h>
13 #include <uapi/linux/if_packet.h>
14 #include <uapi/linux/ip.h>
15 #include <uapi/linux/ipv6.h>
16 #include <uapi/linux/in.h>
26 char header[sizeof(struct ipv6hdr)]; in bpf_basertt() local
35 op = (int) skops->op; in bpf_basertt()
46 if (skops->family == AF_INET) in bpf_basertt()
51 header, hdr_size); in bpf_basertt()
53 if (skops->family == AF_INET) { in bpf_basertt()
54 hdr = (struct iphdr *) header; in bpf_basertt()
55 tos = hdr->tos; in bpf_basertt()
60 hdr6 = (struct ipv6hdr *) header; in bpf_basertt()
61 tos = ((hdr6->priority) << 4 | in bpf_basertt()
62 (hdr6->flow_lbl[0]) >> 4); in bpf_basertt()
72 rv = -1; in bpf_basertt()
77 skops->reply = rv; in bpf_basertt()