Compare commits

...

3 Commits

Author SHA1 Message Date
Adrien Gallouët
3675820555 Add mtu-auto option 2016-12-14 14:56:53 +00:00
Adrien Gallouët
3ba1b914d6 Update mud 2016-12-13 13:54:33 +00:00
Adrien Gallouët
1dbf3fcc80 Update mud 2016-12-12 16:41:28 +00:00
2 changed files with 3 additions and 2 deletions

2
mud

Submodule mud updated: 078a30611e...ef260f90de

View File

@@ -277,6 +277,7 @@ main(int argc, char **argv)
{ "bind-port", &bind_port, option_long }, { "bind-port", &bind_port, option_long },
{ "dev", &dev, option_str }, { "dev", &dev, option_str },
{ "mtu", &mtu, option_long }, { "mtu", &mtu, option_long },
{ "mtu-auto", NULL, option_option },
{ "keyfile", &keyfile, option_str }, { "keyfile", &keyfile, option_str },
{ "statefile", &statefile, option_str }, { "statefile", &statefile, option_str },
{ "timeout", &gt.timeout, option_long }, { "timeout", &gt.timeout, option_long },
@@ -325,7 +326,7 @@ main(int argc, char **argv)
int icmp_fd = -1; int icmp_fd = -1;
if (v4) { if (v4 && option_is_set(opts, "mtu-auto")) {
icmp_fd = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP); icmp_fd = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP);
if (icmp_fd == -1) if (icmp_fd == -1)