Resize and align buf

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2020-01-03 15:09:06 +00:00
parent 1ae7775ce1
commit 53e7a7ba0a

View File

@@ -221,7 +221,8 @@ gt_bind(int argc, char **argv)
int last_fd = MAX(tun_fd, mud_fd); int last_fd = MAX(tun_fd, mud_fd);
last_fd = 1 + MAX(last_fd, ctl_fd); last_fd = 1 + MAX(last_fd, ctl_fd);
unsigned char buf[4096]; __attribute__((aligned(16)))
unsigned char buf[1500];
while (!gt_quit) { while (!gt_quit) {
if (tun_can_write) { if (tun_can_write) {