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 (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
3645 __u32 remote_port; /* Stored in network byte order */3645 __u32 remote_port; /* Stored in network byte order */
3646 __u32 local_port; /* stored in host byte order */3646 __u32 local_port; /* stored in host byte order */
3647 __u32 size; /* Total size of sk_msg */3647 __u32 size; /* Total size of sk_msg */
3648
3649 __bpf_md_ptr(struct bpf_sock *, sk); /* current socket */
3648};3650};
3649 3651
3650struct sk_reuseport_md {3652struct sk_reuseport_md {