aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTushar Pankaj <tushar.s.pankaj@gmail.com>2018-11-12 18:26:57 -0600
committerTushar Pankaj <tushar.s.pankaj@gmail.com>2018-11-12 18:26:57 -0600
commita30c60e51ecae887fd89654bdedddcf0decb766c (patch)
treebaeb194080607a21ca63c6511cea1831844153cb
parentWorking client and server comms (diff)
downloadwg-dynamic-a30c60e51ecae887fd89654bdedddcf0decb766c.tar.xz
wg-dynamic-a30c60e51ecae887fd89654bdedddcf0decb766c.zip
Add WireGuard embeddable library
Signed-off-by: Tushar Pankaj <tushar.s.pankaj@gmail.com>
-rw-r--r--.gitmodules3
-rw-r--r--Makefile5
-rw-r--r--README.md8
m---------WireGuard0
l---------wireguard.c1
l---------wireguard.h1
6 files changed, 16 insertions, 2 deletions
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
+Subproject 1b6d93db9a309840bcd7bb67a6bf3e8ca188003
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