aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include/uapi/linux
diff options
context:
space:
mode:
authorJohn Fastabend <john.fastabend@gmail.com>2018-05-17 17:17:03 -0400
committerDaniel Borkmann <daniel@iogearbox.net>2018-05-18 16:44:11 -0400
commit4da0dcabe4bc633ffc13bb4a669c34dd876e59d1 (patch)
tree9cbbbd101ef09da90f1ab1657c4ec15bb697915d /tools/include/uapi/linux
parent303def35f64e37bcd5401d202889f5fbc0241179 (diff)
bpf: add sk_msg prog sk access tests to test_verifier
Add tests for BPF_PROG_TYPE_SK_MSG to test_verifier for read access to new sk fields. Signed-off-by: John Fastabend <john.fastabend@gmail.com> Acked-by: Martin KaFai Lau <kafai@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/include/uapi/linux')
-rw-r--r--tools/include/uapi/linux/bpf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
index d94d333a8225..97446bbe2ca5 100644
--- a/tools/include/uapi/linux/bpf.h
+++ b/tools/include/uapi/linux/bpf.h
@@ -2176,6 +2176,14 @@ enum sk_action {
2176struct sk_msg_md { 2176struct sk_msg_md {
2177 void *data; 2177 void *data;
2178 void *data_end; 2178 void *data_end;
2179
2180 __u32 family;
2181 __u32 remote_ip4; /* Stored in network byte order */
2182 __u32 local_ip4; /* Stored in network byte order */
2183 __u32 remote_ip6[4]; /* Stored in network byte order */
2184 __u32 local_ip6[4]; /* Stored in network byte order */
2185 __u32 remote_port; /* Stored in network byte order */
2186 __u32 local_port; /* stored in host byte order */
2179}; 2187};
2180 2188
2181#define BPF_TAG_SIZE 8 2189#define BPF_TAG_SIZE 8