Logo
Explore Help
Sign In
mirror/xdp-project-bpf-examples
1
0
Fork 0
You've already forked xdp-project-bpf-examples
mirror of https://github.com/xdp-project/bpf-examples.git synced 2024-05-06 15:54:53 +00:00
Code Issues Projects Releases Wiki Activity
Files
062b5d96fbbf095472963e7031ee95aa25423fa0
xdp-project-bpf-examples/nat64-bpf/Makefile

14 lines
249 B
Makefile
Raw Normal View History

nat64-bpf: Initial version This adds an initial version of a NAT64 translator in BPF. It compiles and loads, but doesn't actually appear to work yet. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
2021-09-29 01:46:09 +02:00
# 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
nat64: Insert route and neighbour entry on setup/teardown 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>
2021-10-04 17:13:00 +02:00
USER_LIBS = -lmnl
nat64-bpf: Initial version This adds an initial version of a NAT64 translator in BPF. It compiles and loads, but doesn't actually appear to work yet. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
2021-09-29 01:46:09 +02:00
EXTRA_DEPS += nat64.h
LIB_DIR = ../lib
include $(LIB_DIR)/common.mk
Reference in New Issue Copy Permalink
Powered by Gitea Page: 909ms Template: 1ms
edge-auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API