diff options
| author | John Fastabend <[email protected]> | 2018-11-26 22:16:18 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2018-11-28 21:07:57 +0000 |
| commit | d913a2273a8988cd810a031bfa08249ca7dd5f7c (patch) | |
| tree | be3f03a3f06771d4398d7e4afa2e543c1f5e9372 /tools/testing/selftests/bpf/bpf_helpers.h | |
| parent | bpf: helper to pop data from messages (diff) | |
| download | kernel-d913a2273a8988cd810a031bfa08249ca7dd5f7c.tar.gz kernel-d913a2273a8988cd810a031bfa08249ca7dd5f7c.zip | |
bpf: add msg_pop_data helper to tools
Add the necessary header definitions to tools for new
msg_pop_data_helper.
Signed-off-by: John Fastabend <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/bpf_helpers.h')
| -rw-r--r-- | tools/testing/selftests/bpf/bpf_helpers.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/bpf/bpf_helpers.h b/tools/testing/selftests/bpf/bpf_helpers.h index 686e57ce40f4..7b69519a09b1 100644 --- a/tools/testing/selftests/bpf/bpf_helpers.h +++ b/tools/testing/selftests/bpf/bpf_helpers.h @@ -113,6 +113,8 @@ static int (*bpf_msg_pull_data)(void *ctx, int start, int end, int flags) = (void *) BPF_FUNC_msg_pull_data; static int (*bpf_msg_push_data)(void *ctx, int start, int end, int flags) = (void *) BPF_FUNC_msg_push_data; +static int (*bpf_msg_pop_data)(void *ctx, int start, int cut, int flags) = + (void *) BPF_FUNC_msg_pop_data; static int (*bpf_bind)(void *ctx, void *addr, int addr_len) = (void *) BPF_FUNC_bind; static int (*bpf_xdp_adjust_tail)(void *ctx, int offset) = |
