diff options
| author | John Fastabend <[email protected]> | 2020-05-24 09:51:15 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-06-01 14:38:20 -0700 |
| commit | 13d70f5a5ecff367db2fb18ed4ebe433eab8a74c (patch) | |
| tree | bc3bc59b3ccbbe64caa3b1909b83d545f74e4ff1 /tools/include/uapi | |
| parent | f470378c7562a2818b45ed11c98973f2b89eedd3 (diff) | |
bpf, sk_msg: Add get socket storage helpers
Add helpers to use local socket storage.
Signed-off-by: John Fastabend <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/159033907577.12355.14740125020572756560.stgit@john-Precision-5820-Tower
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/include/uapi')
| -rw-r--r-- | tools/include/uapi/linux/bpf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 97e1fd19ff58..54b93f8b49b8 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h @@ -3645,6 +3645,8 @@ struct sk_msg_md { __u32 remote_port; /* Stored in network byte order */ __u32 local_port; /* stored in host byte order */ __u32 size; /* Total size of sk_msg */ + + __bpf_md_ptr(struct bpf_sock *, sk); /* current socket */ }; struct sk_reuseport_md { |