summaryrefslogtreecommitdiff
path: root/dummy_ebpf_2/src/tc_prog_kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'dummy_ebpf_2/src/tc_prog_kernel.c')
-rw-r--r--dummy_ebpf_2/src/tc_prog_kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dummy_ebpf_2/src/tc_prog_kernel.c b/dummy_ebpf_2/src/tc_prog_kernel.c
index cde2c17..7c58ff6 100644
--- a/dummy_ebpf_2/src/tc_prog_kernel.c
+++ b/dummy_ebpf_2/src/tc_prog_kernel.c
@@ -72,7 +72,7 @@ int tc_redirect_map_func(struct __sk_buff *skb) {
}
// Redirect the packet to the endpoint referenced by map at index key.
- action = bpf_redirect(*ifindex, 0);
+ action = bpf_redirect(*ifindex, BPF_F_INGRESS);
if (action != TC_ACT_REDIRECT) {
bpf_printk("bpf_redirect_map failed. return code:%d", ret);
}