History

bpf/tools: sync bpf.h

Add sk to struct bpf_sock_addr and struct bpf_sock_ops.

Stanislav Fomichev committed 7 years ago

Commit cd17d771 parent 1314ef51 file · +2 −0Browse files

Showing the changes to tools/include/uapi/linux (1 of 1 file). Show all

Unified · Split

tools/include/uapi/linux/bpf.h+2−0
@@ -3247,6 +3247,7 @@ struct bpf_sock_addr { · 3246 unmodified lines
32473247 __u32 msg_src_ip6[4]; /* Allows 1,2,4-byte read an 4-byte write.
32483248 * Stored in network byte order.
32493249 */
3250+ __bpf_md_ptr(struct bpf_sock *, sk);
32503251 };
32513252
32523253 /* User bpf_sock_ops struct to access socket values and specify request ops
@@ -3298,6 +3299,7 @@ struct bpf_sock_ops { · 45 unmodified lines
32983299 __u32 sk_txhash;
32993300 __u64 bytes_received;
33003301 __u64 bytes_acked;
3302+ __bpf_md_ptr(struct bpf_sock *, sk);
33013303 };
33023304
33033305 /* Definitions for bpf_sock_ops_cb_flags */