Update mud

This commit is contained in:
Adrien Gallouët
2016-10-25 09:15:34 +00:00
parent 048870e280
commit d599e545f7
2 changed files with 5 additions and 3 deletions

2
mud

Submodule mud updated: b82534d54c...df0d941241

View File

@@ -437,8 +437,10 @@ int main (int argc, char **argv)
unsigned char *data = &buf[ic.hdr_size];
if (data[0]==3) {
int new_mtu = (data[6]<<8)|data[7];
gt_log("received MTU from ICMP: %i\n", new_mtu);
mud_set_mtu(mud, new_mtu-50);
if (new_mtu) {
gt_log("received MTU from ICMP: %i\n", new_mtu);
mud_set_mtu(mud, new_mtu-50);
}
}
}
}