mirror of
https://github.com/markqvist/tncattach.git
synced 2025-06-15 04:42:28 -04:00
Fixed mtu stuff
This commit is contained in:
parent
05bc0ae6ad
commit
005373b582
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user