diff options
| author | Andrey Ignatov <rdna@fb.com> | 2018-07-30 20:42:29 -0400 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-07-31 03:33:48 -0400 |
| commit | a40b712e4c4d09f6fa234872384da9705443d4e9 (patch) | |
| tree | bebd5f44294fc2da591b11006bfeceb7b4d172c3 /tools/include/uapi/linux | |
| parent | d692f1138a4bac2efd2c8656ca15556b63479e82 (diff) | |
bpf: Sync bpf.h to tools/
Sync bpf_get_socket_cookie() related bpf UAPI changes to tools/.
Signed-off-by: Andrey Ignatov <rdna@fb.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/include/uapi/linux')
| -rw-r--r-- | tools/include/uapi/linux/bpf.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h index 870113916cac..0ebaaf7f3568 100644 --- a/tools/include/uapi/linux/bpf.h +++ b/tools/include/uapi/linux/bpf.h | |||
| @@ -1371,6 +1371,20 @@ union bpf_attr { | |||
| 1371 | * A 8-byte long non-decreasing number on success, or 0 if the | 1371 | * A 8-byte long non-decreasing number on success, or 0 if the |
| 1372 | * socket field is missing inside *skb*. | 1372 | * socket field is missing inside *skb*. |
| 1373 | * | 1373 | * |
| 1374 | * u64 bpf_get_socket_cookie(struct bpf_sock_addr *ctx) | ||
| 1375 | * Description | ||
| 1376 | * Equivalent to bpf_get_socket_cookie() helper that accepts | ||
| 1377 | * *skb*, but gets socket from **struct bpf_sock_addr** contex. | ||
| 1378 | * Return | ||
| 1379 | * A 8-byte long non-decreasing number. | ||
| 1380 | * | ||
| 1381 | * u64 bpf_get_socket_cookie(struct bpf_sock_ops *ctx) | ||
| 1382 | * Description | ||
| 1383 | * Equivalent to bpf_get_socket_cookie() helper that accepts | ||
| 1384 | * *skb*, but gets socket from **struct bpf_sock_ops** contex. | ||
| 1385 | * Return | ||
| 1386 | * A 8-byte long non-decreasing number. | ||
| 1387 | * | ||
| 1374 | * u32 bpf_get_socket_uid(struct sk_buff *skb) | 1388 | * u32 bpf_get_socket_uid(struct sk_buff *skb) |
| 1375 | * Return | 1389 | * Return |
| 1376 | * The owner UID of the socket associated to *skb*. If the socket | 1390 | * The owner UID of the socket associated to *skb*. If the socket |
