bpf: Sync bpf.h to tools/
[linux-2.6-block.git] / tools / include / uapi / linux / bpf.h
index 9b8c6e310e9a9666aefec27c74451954711d6bde..cc68787f2d974d114f268b2c4992961b2fb2a1f2 100644 (file)
@@ -160,6 +160,8 @@ enum bpf_attach_type {
        BPF_CGROUP_INET6_CONNECT,
        BPF_CGROUP_INET4_POST_BIND,
        BPF_CGROUP_INET6_POST_BIND,
+       BPF_CGROUP_UDP4_SENDMSG,
+       BPF_CGROUP_UDP6_SENDMSG,
        __MAX_BPF_ATTACH_TYPE
 };
 
@@ -2363,6 +2365,12 @@ struct bpf_sock_addr {
        __u32 family;           /* Allows 4-byte read, but no write */
        __u32 type;             /* Allows 4-byte read, but no write */
        __u32 protocol;         /* Allows 4-byte read, but no write */
+       __u32 msg_src_ip4;      /* Allows 1,2,4-byte read an 4-byte write.
+                                * Stored in network byte order.
+                                */
+       __u32 msg_src_ip6[4];   /* Allows 1,2,4-byte read an 4-byte write.
+                                * Stored in network byte order.
+                                */
 };
 
 /* User bpf_sock_ops struct to access socket values and specify request ops