diff options
Diffstat (limited to 'dummy_ebpf_2/src')
| -rw-r--r-- | dummy_ebpf_2/src/tc_prog_kernel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dummy_ebpf_2/src/tc_prog_kernel.c b/dummy_ebpf_2/src/tc_prog_kernel.c index 7c58ff6..fb8a6ca 100644 --- a/dummy_ebpf_2/src/tc_prog_kernel.c +++ b/dummy_ebpf_2/src/tc_prog_kernel.c @@ -72,7 +72,8 @@ 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, BPF_F_INGRESS); + // action = bpf_redirect(*ifindex, BPF_F_INGRESS); + action = bpf_redirect(*ifindex, 0); if (action != TC_ACT_REDIRECT) { bpf_printk("bpf_redirect_map failed. return code:%d", ret); } |
