From a30c60e51ecae887fd89654bdedddcf0decb766c Mon Sep 17 00:00:00 2001 From: Tushar Pankaj Date: Mon, 12 Nov 2018 18:26:57 -0600 Subject: Add WireGuard embeddable library Signed-off-by: Tushar Pankaj --- .gitmodules | 3 +++ Makefile | 5 +++-- README.md | 8 ++++++++ WireGuard | 1 + wireguard.c | 1 + wireguard.h | 1 + 6 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .gitmodules create mode 160000 WireGuard create mode 120000 wireguard.c create mode 120000 wireguard.h diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..2c0078c --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "WireGuard"] + path = WireGuard + url = git://git.zx2c4.com/WireGuard diff --git a/Makefile b/Makefile index da2a068..30249db 100644 --- a/Makefile +++ b/Makefile @@ -20,9 +20,10 @@ wg-dynamic-server: ${SERVER_OBJS} ${CC} ${LDFLAGS} ${SERVER_OBJS} -o $@ wg_dynamic_client.o: wg_dynamic_client.c client.h -client.o: client.c client.h +client.o: client.c client.h wireguard.h wg_dynamic_server.o: wg_dynamic_server.c server.h -server.o: server.c server.h +server.o: server.c server.h wireguard.h +wireguard.o: wireguard.c wireguard.h protocol.capnp.o: protocol.capnp.c # capnproto diff --git a/README.md b/README.md index 0a4f3da..e42b809 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # Wireguard Dynamic IP Configuration Tool This is a work-in-progress (i.e. nonexistent) configuration tool for dynamic IPs in Wireguard. There will eventually be stuff here. + +## Dependencies +* Wireguard +* [libcapnp_c](https://github.com/opensourcerouting/c-capnproto) + +## Building +1. git submodule update --init --recursive +2. `make` diff --git a/WireGuard b/WireGuard new file mode 160000 index 0000000..1b6d93d --- /dev/null +++ b/WireGuard @@ -0,0 +1 @@ +Subproject commit 1b6d93db9a309840bcd7bb67a6bf3e8ca1880035 diff --git a/wireguard.c b/wireguard.c new file mode 120000 index 0000000..172545a --- /dev/null +++ b/wireguard.c @@ -0,0 +1 @@ +WireGuard/contrib/examples/embeddable-wg-library/wireguard.c \ No newline at end of file diff --git a/wireguard.h b/wireguard.h new file mode 120000 index 0000000..7bf9982 --- /dev/null +++ b/wireguard.h @@ -0,0 +1 @@ +WireGuard/contrib/examples/embeddable-wg-library/wireguard.h \ No newline at end of file -- cgit v1.2.3-59-g8ed1b