]> git.ipfire.org Git - thirdparty/mtr.git/commit
allow setting local and remote port for UDP probing
authorrussor <russor@whatsapp.com>
Thu, 25 Feb 2016 22:31:58 +0000 (14:31 -0800)
committerrussor <russor@whatsapp.com>
Fri, 8 Apr 2016 23:59:27 +0000 (16:59 -0700)
commitaaccfc0efa0e10cd61acc0c6fb618b83f6794e58
tree2d9d59897fcef24753e27840afe2f1c13314b46f
parentfaa1bd87e4325b604223aaa8ad5517872ccb7336
allow setting local and remote port for UDP probing

This allows for testing over a single network path in a load balanced
network where flows are hashed on the ips and ports (relatively common), the
default behavior is to use the destination port as the sequence number when
doing UDP probes, so you see (more or less) an average of all the paths.

If the remote port is set, we need to use the checksum field to store
sequence and adjust the paylod so the checksum is valid; therefore we need
to have the source address, as it's part of the checksum calculation.  We
also need to increase the minimum packet size so we have at least 2 bytes of
payload.
mtr.8
mtr.c
net.c