History

bpf, sk_msg: Add get socket storage helpers

Add helpers to use local socket storage.

John Fastabend committed 6 years ago

Commit 13d70f51 parent f4703783 files · +19 −0Browse files

Showing the changes to include/uapi/linux (1 of 3 files). Show all

Unified · Split

include/uapi/linux/bpf.h+2−0
@@ -3645,6 +3645,8 @@ struct sk_msg_md { · 3644 unmodified lines
36453645 __u32 remote_port; /* Stored in network byte order */
36463646 __u32 local_port; /* stored in host byte order */
36473647 __u32 size; /* Total size of sk_msg */
3648+
3649+ __bpf_md_ptr(struct bpf_sock *, sk); /* current socket */
36483650 };
36493651
36503652 struct sk_reuseport_md {