Don't set mtu in mud_create()

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2017-11-15 22:44:03 +00:00
parent 21957cc0cc
commit 2c82c01233
2 changed files with 2 additions and 3 deletions

3
mud.c
View File

@@ -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;
}

2
mud.h
View File

@@ -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 *);