Skip to content

Commit

Permalink
Add basic tunnel support to data-plane
Browse files Browse the repository at this point in the history
  • Loading branch information
svpcom committed Oct 8, 2024
1 parent eaa2c15 commit c3d1218
Show file tree
Hide file tree
Showing 5 changed files with 535 additions and 5 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $(ENV):
$(PYTHON) -m virtualenv $(ENV)
$$(PATH=$(ENV)/bin:$(ENV)/local/bin:$(PATH) which pip3) install --upgrade pip setuptools $(STDEB)

all_bin: wfb_rx wfb_tx wfb_keygen wfb_tx_cmd
all_bin: wfb_rx wfb_tx wfb_keygen wfb_tx_cmd wfb_tun

gs.key: wfb_keygen
@if ! [ -f gs.key ]; then ./wfb_keygen; fi
Expand All @@ -49,6 +49,9 @@ wfb_keygen: src/keygen.o
wfb_tx_cmd: src/tx_cmd.o
$(CC) -o $@ $^ $(LDFLAGS)

wfb_tun: src/wfb_tun.o
$(CC) -o $@ $^ $(LDFLAGS) -levent_core

test: all_bin
PYTHONPATH=`pwd` trial3 wfb_ng.tests

Expand Down Expand Up @@ -77,7 +80,7 @@ pylint:
pylint --disable=R,C wfb_ng/*.py

clean:
rm -rf env wfb_rx wfb_tx wfb_tx_cmd wfb_keygen dist deb_dist build wfb_ng.egg-info wfb-ng-*.tar.gz _trial_temp *~ src/*.o
rm -rf env wfb_rx wfb_tx wfb_tx_cmd wfb_tun wfb_keygen dist deb_dist build wfb_ng.egg-info wfb-ng-*.tar.gz _trial_temp *~ src/*.o

deb_docker: /opt/qemu/bin
@if ! [ -d /opt/qemu ]; then echo "Docker cross build requires patched QEMU!\nApply ./scripts/qemu/qemu.patch to qemu-7.2.0 and build it:\n ./configure --prefix=/opt/qemu --static --disable-system && make && sudo make install"; exit 1; fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/install_gs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ IFNAME="${1}"
apt update
apt upgrade

apt install python3-all python3-all-dev libpcap-dev libsodium-dev python3-pip python3-pyroute2 python3-msgpack \
apt install python3-all python3-all-dev libpcap-dev libsodium-dev libevent-dev python3-pip python3-pyroute2 python3-msgpack \
python3-future python3-twisted python3-serial python3-jinja2 iw virtualenv debhelper dh-python fakeroot build-essential -y

# Build
Expand Down
Loading

0 comments on commit c3d1218

Please sign in to comment.