aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/ipc.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-02-03 16:52:29 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-02-03 18:17:27 +0100
commitef117a91d1aa3caf02f89d0a824fee80a8f88b88 (patch)
tree4c5ec496f53b0e54f3555160d4503af5f4a60bdc /src/ipc.c
parentembeddable-wg-library: use newer string_list (diff)
downloadwireguard-tools-ef117a91d1aa3caf02f89d0a824fee80a8f88b88.tar.xz
wireguard-tools-ef117a91d1aa3caf02f89d0a824fee80a8f88b88.zip
netlink: remove libmnl requirement
It turns out that the binary actually gets smaller if we simply inline the very small parts of libmnl that we need. Since we wind up needing the mnlg bits anyway, there's little benefit in linking to libmnl. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/ipc.c')
-rw-r--r--src/ipc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/ipc.c b/src/ipc.c
index 8b74b5c..a0bf607 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -4,13 +4,10 @@
*/
#ifdef __linux__
-#include <libmnl/libmnl.h>
#include <linux/if_link.h>
-#include <linux/netlink.h>
#include <linux/rtnetlink.h>
-#include <linux/genetlink.h>
#include <linux/wireguard.h>
-#include "mnlg.h"
+#include "netlink.h"
#endif
#include <netinet/in.h>
#include <sys/socket.h>