Commit fc94e648 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Be more conservative when computing maxmtu.

parent 3f52eddc
......@@ -332,9 +332,9 @@ main(int argc, char **argv)
maxmtu = MAX(maxmtu, mtu);
mtu = 32768;
}
maxmtu = MAX(maxmtu, mtu);
/* 40 for IPv6 header, 8 for UDP header, 12 for good luck. */
mtu -= 60;
maxmtu = MAX(maxmtu, mtu);
}
rc = kernel_interface_wireless(*arg, ifindex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment