aboutsummaryrefslogtreecommitdiffstats
path: root/samples/bpf/bpf_helpers.h
diff options
context:
space:
mode:
Diffstat (limited to 'samples/bpf/bpf_helpers.h')
-rw-r--r--samples/bpf/bpf_helpers.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/samples/bpf/bpf_helpers.h b/samples/bpf/bpf_helpers.h
index ca0333146006..72540ec1f003 100644
--- a/samples/bpf/bpf_helpers.h
+++ b/samples/bpf/bpf_helpers.h
@@ -37,4 +37,11 @@ struct bpf_map_def {
37 unsigned int max_entries; 37 unsigned int max_entries;
38}; 38};
39 39
40static int (*bpf_skb_store_bytes)(void *ctx, int off, void *from, int len, int flags) =
41 (void *) BPF_FUNC_skb_store_bytes;
42static int (*bpf_l3_csum_replace)(void *ctx, int off, int from, int to, int flags) =
43 (void *) BPF_FUNC_l3_csum_replace;
44static int (*bpf_l4_csum_replace)(void *ctx, int off, int from, int to, int flags) =
45 (void *) BPF_FUNC_l4_csum_replace;
46
40#endif 47#endif