From 2c82c0123331e2851b4e9dac1bfa451a535b139e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20Gallou=C3=ABt?= Date: Wed, 15 Nov 2017 22:44:03 +0000 Subject: [PATCH] Don't set mtu in mud_create() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Adrien Gallouët --- mud.c | 3 +-- mud.h | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/mud.c b/mud.c index 7244dc8..bce2645 100644 --- a/mud.c +++ b/mud.c @@ -785,7 +785,7 @@ mud_set_aes(struct mud *mud) } struct mud * -mud_create(int port, int v4, int v6, int mtu) +mud_create(int port, int v4, int v6) { uint64_t now = mud_now(); @@ -812,7 +812,6 @@ mud_create(int port, int v4, int v6, int mtu) mud->tc = MUD_PACKET_TC; randombytes_buf(mud->kiss, sizeof(mud->kiss)); - mud_set_mtu(mud, mtu); return mud; } diff --git a/mud.h b/mud.h index ab2de8a..a1c40e8 100644 --- a/mud.h +++ b/mud.h @@ -4,7 +4,7 @@ struct mud; -struct mud *mud_create (int, int, int, int); +struct mud *mud_create (int, int, int); void mud_delete (struct mud *); int mud_get_fd (struct mud *);