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 tools/include (1 of 3 files). Show all

Unified · Split

tools/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 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t