Use packet size before decompression to calculate path MTU.
authorGuus Sliepen <guus@tinc-vpn.org>
Mon, 25 May 2009 10:19:37 +0000 (12:19 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Mon, 25 May 2009 10:19:37 +0000 (12:19 +0200)
Since compression can either grow or shrink a packet, the size of an MTU probe
after decompression might not reflect the real path MTU. Now we use the size
before decompression, which is independent of the compression algorithm, and
substract a safety margin such that the calculated path MTU will be safe even
for packets which grow as much as possible after compression.


No differences found