Skip to content

Commit 6894800

Browse files
committed
cosmetics
1 parent 05eb65f commit 6894800

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[![gtp-guard CI](https://github.com/acassen/gtp-guard/actions/workflows/actions-compile.yml/badge.svg)](https://github.com/acassen/gtp-guard/actions/workflows/actions-compile.yml)
55

6-
<img width="20%" src="https://www.gtp-guard.org/assets/logo.png" align="left"/>
6+
<img width="30%" src="https://www.gtp-guard.org/assets/logo.png" align="left"/>
77

88
GTP-Guard is a routing software written in C. The main goal of this project is to provide robust and secure extensions to GTP protocol (GPRS Tunneling Protocol). GTP is widely used for data-plane in mobile core-network. GTP-Guard implements a set of 3 main framworks. The first one offers a Proxy feature for data-plane tweaking. The second one is a Routing facility to inter-connect, encapsulates or provides any routing related. The last one is a Firewall feature offering filtering, rewriting, redirecting. GTP-Guard relies on Linux Kernel XDP framework for its data-plane using eBPF programs. Administration and user-level interface are available via a standard VTY terminal interface.
99

src/bpf/Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
# XDP program to build
2323
TARGETS := gtp_fwd.bpf gtp_route.bpf gtp_mirror.bpf sock_rps.bpf
24+
BIN = ../../bin
2425

2526
# Allows pointing LLC/CLANG to a LLVM backend with bpf support, redefine on cmdline:
2627
# make samples/bpf/ LLC=~/git/llvm/build/bin/llc CLANG=~/git/llvm/build/bin/clang
@@ -41,7 +42,7 @@ clean:
4142
-o -name '*.ll' \
4243
-o -name '*.bc' \) \
4344
-exec rm -vf '{}' \;
44-
rm -f $(TARGETS)
45+
@for i in $(TARGETS); do rm -vf $(BIN)/"$$i"; done
4546

4647
dependencies: verify_cmds verify_target_bpf
4748
verify_cmds: $(CLANG) $(LLC)
@@ -76,4 +77,4 @@ $(TARGETS): %.bpf: %.c
7677
-Wno-unknown-warning-option \
7778
-Wno-address-of-packed-member \
7879
-O2 -emit-llvm -g -c $< -o ${@:.bpf=.ll}
79-
@$(LLC) -march=bpf -filetype=obj -o $@ ${@:.bpf=.ll}
80+
@$(LLC) -march=bpf -filetype=obj -o $(BIN)/$@ ${@:.bpf=.ll}

0 commit comments

Comments
 (0)