From 53e7a7ba0a1753b40a1a68dddfc670dd0f2a78fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Fri, 3 Jan 2020 15:09:06 +0000 Subject: [PATCH] Resize and align buf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- src/bind.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bind.c b/src/bind.c index 26af523..e152262 100644 --- a/src/bind.c +++ b/src/bind.c @@ -221,7 +221,8 @@ gt_bind(int argc, char **argv) int last_fd = MAX(tun_fd, mud_fd); last_fd = 1 + MAX(last_fd, ctl_fd); - unsigned char buf[4096]; + __attribute__((aligned(16))) + unsigned char buf[1500]; while (!gt_quit) { if (tun_can_write) {