Fixed mtu stuff

This commit is contained in:
Tristan B. Velloza Kildaire 2024-12-15 18:51:56 +02:00
parent 05bc0ae6ad
commit 005373b582

View File

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