Add sk to struct bpf_sock_addr and struct bpf_sock_ops.
Showing the changes to tools/include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -3247,6 +3247,7 @@ struct bpf_sock_addr { · 3246 unmodified lines | |||
| 3247 | __u32 msg_src_ip6[4]; /* Allows 1,2,4-byte read an 4-byte write. | 3247 | __u32 msg_src_ip6[4]; /* Allows 1,2,4-byte read an 4-byte write. |
| 3248 | * Stored in network byte order. | 3248 | * Stored in network byte order. |
| 3249 | */ | 3249 | */ |
| 3250 | __bpf_md_ptr(struct bpf_sock *, sk); | ||
| 3250 | }; | 3251 | }; |
| 3251 | 3252 | ||
| 3252 | /* User bpf_sock_ops struct to access socket values and specify request ops | 3253 | /* User bpf_sock_ops struct to access socket values and specify request ops |
| @@ -3298,6 +3299,7 @@ struct bpf_sock_ops { · 45 unmodified lines | |||
| 3298 | __u32 sk_txhash; | 3299 | __u32 sk_txhash; |
| 3299 | __u64 bytes_received; | 3300 | __u64 bytes_received; |
| 3300 | __u64 bytes_acked; | 3301 | __u64 bytes_acked; |
| 3302 | __bpf_md_ptr(struct bpf_sock *, sk); | ||
| 3301 | }; | 3303 | }; |
| 3302 | 3304 | ||
| 3303 | /* Definitions for bpf_sock_ops_cb_flags */ | 3305 | /* Definitions for bpf_sock_ops_cb_flags */ |