diff options
author | Tushar Pankaj <tushar.s.pankaj@gmail.com> | 2018-11-12 18:26:57 -0600 |
---|---|---|
committer | Tushar Pankaj <tushar.s.pankaj@gmail.com> | 2018-11-12 18:26:57 -0600 |
commit | a30c60e51ecae887fd89654bdedddcf0decb766c (patch) | |
tree | baeb194080607a21ca63c6511cea1831844153cb | |
parent | Working client and server comms (diff) | |
download | wg-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-- | .gitmodules | 3 | ||||
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | README.md | 8 | ||||
m--------- | WireGuard | 0 | ||||
l--------- | wireguard.c | 1 | ||||
l--------- | wireguard.h | 1 |
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 @@ -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 @@ -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 |