From 005373b5824808f1b3ff83945443fa0af2558b25 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sun, 15 Dec 2024 18:51:56 +0200 Subject: [PATCH] Fixed mtu stuff --- tncattach.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tncattach.c b/tncattach.c index 6aa12f1..582c4a4 100644 --- a/tncattach.c +++ b/tncattach.c @@ -332,7 +332,7 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state) { argp_usage(state); } - if(arguments->set_ipv6 || arguments->link_local_v6) + if((arguments->set_ipv6 || arguments->link_local_v6) && arguments->mtu < 1280) { printf("IPv6 and/or link-loal IPv6 was requested, but the MTU provided is lower than 1280\n"); exit(EXIT_FAILURE); @@ -705,4 +705,4 @@ int main(int argc, char **argv) { read_loop(); return 0; -} \ No newline at end of file +}