mirror of
https://github.com/xdp-project/bpf-examples.git
synced 2024-05-06 15:54:53 +00:00
We insert a v4-via-v6 route on the interface to direct packets to the v4 subnet to the right interface, where it will be rewritten by the BPF program. We also create a fake neighbour entry so the kernel won't do neighbour resolution when sending the pre-rewrite packet. The egress BPF program will use bpf_redirect_neigh() to do proper neighbour resolution for the actual destination after rewriting the packet. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
14 lines
249 B
Makefile
14 lines
249 B
Makefile
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
|
|
USER_TARGETS := nat64
|
|
BPF_TARGETS := nat64_kern
|
|
BPF_SKEL_OBJ := nat64_kern.o
|
|
|
|
#LDLIBS += -pthread
|
|
USER_LIBS = -lmnl
|
|
EXTRA_DEPS += nat64.h
|
|
|
|
LIB_DIR = ../lib
|
|
|
|
include $(LIB_DIR)/common.mk
|