]> git.ipfire.org Git - thirdparty/mtr.git/commit
Add TCP (SYN) support 1/head
authorRogier 'DocWilco' Mulhuijzen <github@bsdchicks.com>
Wed, 20 Feb 2013 20:59:01 +0000 (21:59 +0100)
committerRogier 'DocWilco' Mulhuijzen <github@bsdchicks.com>
Fri, 22 Feb 2013 11:12:42 +0000 (12:12 +0100)
commit2cf22b240958b72fb8d84f3ee663f84cbad2c65b
tree4f2961ca75908b9b2c0cc869938e0c9b2d8e41f0
parentbc4167603698ea0170fd5f36000f0a5be7a293ef
Add TCP (SYN) support

Instead of sending ICMP ECHO or UDP packets, this mode opens a TCP
connection to the port of choice (80 by default) and sets IP_TTL
or IPV6_UNICAST_HOPS to control the TTL of the outgoing SYN packet.

Instead of using ICMP ECHO sequence or UDP destination port, the
source port number is used to track how many hops away a router is.

For getting the final hop, sockets are left open until a timeout
is reached (10 seconds default) and a write is attempted as soon
as the socket becomes available for writing. Anything other than
a succesful write or a "Connection refused" error is ignored.
curses.c
gtk.c
mtr.8
mtr.c
net.c
net.h
select.c