From: Etienne Dechamps Date: Sun, 12 Oct 2014 18:44:33 +0000 (+0100) Subject: Clarify the send_mtu_probe() function. X-Git-Tag: release-1.1pre12~247 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=950edc0744dfa04790ae274e8b7f55b1a990a43c;hp=950edc0744dfa04790ae274e8b7f55b1a990a43c;p=tinc Clarify the send_mtu_probe() function. This cleans up the PMTU probing function a little bit. It moves the low-level sending of packets to a separate function, so that the code reads naturally instead of using a weird for loop with "special indexes". In addition, comments are moved inside the body of the function for additional context. This shouldn't introduce any change of behavior, except for local discovery which has some minor logic fixes and which now always uses small packets (16 bytes) because there's no need for a full-length probe just to try the local network. ---