Update bpf_sock_addr comments to indicate support for 8-byte reads from user_ip6 and msg_src_ip6.
Showing the changes to tools/include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -3245,7 +3245,7 @@ struct bpf_sock_addr { · 3244 unmodified lines | |||
| 3245 | __u32 user_ip4; /* Allows 1,2,4-byte read and 4-byte write. | 3245 | __u32 user_ip4; /* Allows 1,2,4-byte read and 4-byte write. |
| 3246 | * Stored in network byte order. | 3246 | * Stored in network byte order. |
| 3247 | */ | 3247 | */ |
| 3248 | __u32 user_ip6[4]; /* Allows 1,2,4-byte read and 4,8-byte write. | 3248 | __u32 user_ip6[4]; /* Allows 1,2,4,8-byte read and 4,8-byte write. |
| 3249 | * Stored in network byte order. | 3249 | * Stored in network byte order. |
| 3250 | */ | 3250 | */ |
| 3251 | __u32 user_port; /* Allows 4-byte read and write. | 3251 | __u32 user_port; /* Allows 4-byte read and write. |
| @@ -3257,7 +3257,7 @@ struct bpf_sock_addr { · 5 unmodified lines | |||
| 3257 | __u32 msg_src_ip4; /* Allows 1,2,4-byte read and 4-byte write. | 3257 | __u32 msg_src_ip4; /* Allows 1,2,4-byte read and 4-byte write. |
| 3258 | * Stored in network byte order. | 3258 | * Stored in network byte order. |
| 3259 | */ | 3259 | */ |
| 3260 | __u32 msg_src_ip6[4]; /* Allows 1,2,4-byte read and 4,8-byte write. | 3260 | __u32 msg_src_ip6[4]; /* Allows 1,2,4,8-byte read and 4,8-byte write. |
| 3261 | * Stored in network byte order. | 3261 | * Stored in network byte order. |
| 3262 | */ | 3262 | */ |
| 3263 | __bpf_md_ptr(struct bpf_sock *, sk); | 3263 | __bpf_md_ptr(struct bpf_sock *, sk); |