]>
git.ipfire.org Git - thirdparty/mtr.git/log
rewolff [Thu, 21 Jul 2016 11:12:16 +0000 (13:12 +0200)]
Merge pull request #125 from aquerubin/newdns
Merge the GTK display order fix and credits update from master into newdns.
aquerubin [Thu, 21 Jul 2016 10:49:27 +0000 (00:49 -1000)]
Merge branch 'newdns' of https://github.com/aquerubin/mtr into newdns
aquerubin [Thu, 21 Jul 2016 10:46:08 +0000 (00:46 -1000)]
Merge branch 'master' into newdns
aquerubin [Thu, 21 Jul 2016 10:44:56 +0000 (00:44 -1000)]
Update Tony's email address in the GTK credits.
aquerubin [Thu, 21 Jul 2016 10:42:46 +0000 (00:42 -1000)]
Fix Avg and Best column order to match column headers in GTK display.
rewolff [Thu, 21 Jul 2016 06:01:26 +0000 (08:01 +0200)]
Merge pull request #123 from aquerubin/newdns
Sync up recent master updates into newdns
aquerubin [Wed, 20 Jul 2016 19:07:20 +0000 (09:07 -1000)]
Merge updates from branch 'master' into newdns
rewolff [Thu, 14 Jul 2016 14:58:18 +0000 (16:58 +0200)]
Merge pull request #122 from h-ume/gtk-aslookup
Add aslookup support to gtk interface
Hajimu UMEMOTO [Wed, 13 Jul 2016 16:52:02 +0000 (01:52 +0900)]
Add aslookup support to gtk interface
rewolff [Mon, 4 Jul 2016 10:37:22 +0000 (12:37 +0200)]
Merge pull request #120 from yupeng820921/master
add max-unknown option
penyu [Sun, 3 Jul 2016 20:12:01 +0000 (20:12 +0000)]
add max-unknown option
remove the MAX_UNKNOWN_HOSTS macro, use maxUnknown variable
instead of it, and add --max-unknown option, let it can be
configured at run time.
rewolff [Thu, 9 Jun 2016 21:42:49 +0000 (23:42 +0200)]
Merge pull request #118 from zorun/improve_ipinfo
Improve ipinfo
rewolff [Thu, 9 Jun 2016 21:37:46 +0000 (23:37 +0200)]
Merge pull request #119 from zorun/cosmetic
Cosmetic cleanup of the option-parsing code
Baptiste Jonglez [Thu, 9 Jun 2016 18:18:22 +0000 (19:18 +0100)]
Fix wrap-around bug when displaying IP info (-y option)
Some IP prefixes have an allocation date, but some don't.
For instance:
$ dig +short 49.60.231.80.origin.asn.cymru.com TXT
"6453 | 80.231.0.0/16 | EU | ripencc | 2002-03-20"
$ dig +short 186.83.219.195.origin.asn.cymru.com TXT
"6453 | 195.219.0.0/16 | EU | ripencc |"
In the latter case, the parsing code would miss the last (empty) field
and wrap around to the AS number, producing an inconsistent output
(see below).
While we're at it, also make the parsing logic easier to understand...
Before this patch:
$ mtr --report -y 4 nic.co.jp
Start: Thu Jun 9 19:13:50 2016
HOST: gilead Loss% Snt Last Avg Best Wrst StDev
1. 2004-04-05 gatwick.net.cl.ca 0.0% 10 2.0 4.7 2.0 7.1 1.9
2. 786 cl-wgb.route-west 0.0% 10 0.6 11.3 0.6 104.7 32.8
3. 786 d-we.c-ce.net.cam 0.0% 10 0.7 0.6 0.5 0.8 0.0
4. 786 c-ce.b-ec.net.cam 0.0% 10 0.7 6.9 0.3 52.6 16.2
5. 786 ae1.cambab-rbr1.e 0.0% 10 0.3 0.5 0.3 0.7 0.0
6. 786 146.97.65.118 0.0% 10 0.7 0.6 0.5 0.8 0.0
7. 786 146.97.38.17 0.0% 10 3.5 9.3 3.5 17.9 6.2
8. 786 ae29.londtn-sbr1. 0.0% 10 3.7 4.0 3.5 6.6 0.9
9. 2002-03-20 ix-ae-11-0.tcore1 0.0% 10 3.8 5.0 3.5 16.8 4.1
10. 6453 195.219.83.186 0.0% 10 4.3 4.4 3.9 5.6 0.3
11. 2914 ae-4.r22.londen03 0.0% 10 7.7 8.8 3.9 25.5 6.9
12. 2914 ae-6.r21.sngpsi05 0.0% 10 185.4 185.8 174.4 226.5 14.9
13. 2914 ae-20.r31.tokyjp0 0.0% 10 249.9 250.0 249.8 250.4 0.0
14. 2914 ae-21.r00.tokyjp0 0.0% 10 265.9 265.9 265.6 266.1 0.0
15. 2000-09-29 ae-0.gmo.tokyjp05 0.0% 10 253.7 252.5 244.7 257.5 4.4
16. ??? ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
17. 7506 g-o-p-4ee-a01-1-e 0.0% 10 250.3 250.3 250.2 250.5 0.0
18. 7506 unused-157-7-041- 0.0% 10 257.0 256.9 256.7 257.2 0.0
19. 7506 157-7-107-115.vir 0.0% 10 258.6 258.4 258.2 258.6 0.0
After this patch:
$ mtr --report -y 4 nic.co.jp
Start: Thu Jun 9 19:12:30 2016
HOST: gilead Loss% Snt Last Avg Best Wrst StDev
1. 2004-04-05 gatwick.net.cl.ca 0.0% 10 3.6 7.3 1.2 18.1 5.9
2. cl-wgb.route-west 0.0% 10 0.6 0.8 0.5 1.3 0.0
3. d-we.c-ce.net.cam 0.0% 10 0.5 0.7 0.5 1.0 0.0
4. c-ce.b-ec.net.cam 0.0% 10 0.4 1.6 0.3 9.1 2.6
5. ae1.cambab-rbr1.e 0.0% 10 0.4 0.5 0.3 0.7 0.0
6. 146.97.65.118 0.0% 10 0.5 1.1 0.5 5.0 1.3
7. 146.97.38.17 0.0% 10 3.7 8.4 3.4 51.9 15.3
8. ae29.londtn-sbr1. 0.0% 10 3.7 9.0 3.5 54.8 16.1
9. 2002-03-20 ix-ae-11-0.tcore1 0.0% 10 5.5 4.1 3.5 6.0 0.8
10. 195.219.83.186 0.0% 10 4.0 4.2 3.9 4.6 0.0
11. ae-4.r22.londen03 0.0% 10 3.8 9.5 3.8 33.6 11.6
12. ae-6.r21.sngpsi05 20.0% 10 185.8 181.0 179.5 185.8 2.1
13. ae-20.r31.tokyjp0 0.0% 10 249.9 249.7 249.5 249.9 0.0
14. ae-21.r00.tokyjp0 0.0% 10 266.1 266.0 265.7 266.4 0.0
15. 2000-09-29 ae-0.gmo.tokyjp05 0.0% 10 243.8 243.8 243.4 244.4 0.0
16. ??? ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
17. g-o-p-4ee-a01-1-e 0.0% 10 246.1 246.2 245.7 247.4 0.0
18. unused-157-7-041- 0.0% 10 257.3 258.0 256.9 260.9 1.2
19. 157-7-107-115.vir 0.0% 10 258.3 258.4 258.2 258.8 0.0
Baptiste Jonglez [Thu, 9 Jun 2016 17:43:27 +0000 (18:43 +0100)]
Cosmetic cleanup of the option-parsing code
Align everything nicely, update helpful comments, and use NULL instead
of 0 for the third element of long_options: it's a pointer, see getopt(3).
Baptiste Jonglez [Thu, 9 Jun 2016 16:50:13 +0000 (17:50 +0100)]
Document the -y option in the manpage
Baptiste Jonglez [Thu, 9 Jun 2016 16:19:29 +0000 (17:19 +0100)]
Allow enabling IP info and ASN lookup from the curses interface
Toggling IP info and ASN lookup from the curses interface can be done
using 'z' or 'y'. But it was only allowed if it was first enabled via
a command-line switch (either -z or -y).
rewolff [Tue, 3 May 2016 09:01:11 +0000 (11:01 +0200)]
Merge pull request #115 from aquerubin/newdns
Use setcap instead of setuid when installing the binary.
rewolff [Tue, 3 May 2016 09:00:18 +0000 (11:00 +0200)]
Merge pull request #114 from aquerubin/master
Use setcap instead of setuid when installing the binary.
Antonio Querubin [Tue, 3 May 2016 08:47:09 +0000 (22:47 -1000)]
Merge remote-tracking branch 'origin/master' into newdns
Antonio Querubin [Tue, 3 May 2016 08:43:08 +0000 (22:43 -1000)]
Use setcap instead of setuid when installing the binary.
rewolff [Tue, 3 May 2016 05:15:23 +0000 (07:15 +0200)]
Merge pull request #113 from aquerubin/newdns
Need to error check getnameinfo().
rewolff [Tue, 3 May 2016 05:11:11 +0000 (07:11 +0200)]
Merge pull request #112 from aquerubin/master
Correct psize for IPv6.
Antonio Querubin [Tue, 3 May 2016 02:17:14 +0000 (16:17 -1000)]
Need to error check getnameinfo().
aquerubin [Sat, 10 Jan 2015 08:35:36 +0000 (22:35 -1000)]
Correct psize for IPv6.
rewolff [Sat, 30 Apr 2016 12:35:39 +0000 (14:35 +0200)]
Merge pull request #111 from aquerubin/newdns
Merge master into newdns
Antonio Querubin [Sat, 30 Apr 2016 11:42:41 +0000 (01:42 -1000)]
Merge remote-tracking branch 'origin/master' into newdns
Conflicts:
dns.c
R.E. Wolff [Fri, 29 Apr 2016 14:43:57 +0000 (16:43 +0200)]
net.c fix from AQ.
rewolff [Fri, 29 Apr 2016 08:13:43 +0000 (10:13 +0200)]
Merge pull request #110 from russor/master
allow udp traceroute with fixed source and destination ports
russor [Mon, 18 Apr 2016 22:22:50 +0000 (15:22 -0700)]
correct checksum calculation when adding the overflow overflows
you can see this with a bit pattern of FF and a large packet length
russor [Mon, 18 Apr 2016 22:13:21 +0000 (15:13 -0700)]
copy odd byte into a 16-bit temp value; used bit-sized types for calrity
russor [Mon, 18 Apr 2016 20:50:25 +0000 (13:50 -0700)]
endian neutral placement of alternate checksum
russor [Mon, 18 Apr 2016 20:47:14 +0000 (13:47 -0700)]
fix placement of zeros when running alternate udp checksum
russor [Mon, 18 Apr 2016 20:28:43 +0000 (13:28 -0700)]
fix improper aliasing
russor [Fri, 26 Feb 2016 01:30:19 +0000 (17:30 -0800)]
automatically set udp address if needed
russor [Fri, 26 Feb 2016 00:39:13 +0000 (16:39 -0800)]
set the local address for display if it was bound
russor [Fri, 8 Apr 2016 23:34:26 +0000 (16:34 -0700)]
fix checksum for odd sized packets
russor [Thu, 25 Feb 2016 22:31:58 +0000 (14:31 -0800)]
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.
rewolff [Mon, 4 Jan 2016 11:50:14 +0000 (12:50 +0100)]
Merge pull request #103 from jwilk/master
Fix typos
Jakub Wilk [Mon, 4 Jan 2016 11:42:23 +0000 (12:42 +0100)]
Fix typos.
rewolff [Sat, 2 Jan 2016 10:37:43 +0000 (11:37 +0100)]
Merge pull request #102 from tbaschak/32bitasns
Update asn.c - 32bit ASN widths
Theo Baschak [Sat, 2 Jan 2016 05:59:28 +0000 (23:59 -0600)]
Update asn.c - 32bit asn widths
Now that 32-bit ASNs are becoming more common the output of -z should take their width into consideration.
rewolff [Sat, 26 Dec 2015 14:18:19 +0000 (15:18 +0100)]
Merge pull request #101 from trittweiler/master
Fix setting length field of UDP header to broken value on BSD systems.
Tobias Rittweiler [Sat, 26 Dec 2015 12:02:39 +0000 (13:02 +0100)]
Fix setting length field of UDP header to broken value on BSD systems.
As per http://stackoverflow.com/a/
15881825 which references the manpage
ip(4) on *BSD and MacOSX:
"The ip_len and ip_off fields must be provided in host byte order.
All other fields must be provided in network byte order."
Before this commit, mtr would incorrectly set the length field of the UDP
header in host byte order after the first packet, as can be witnessed in
the following excerpt:
1st packet (TTL=1):
IP (tos 0x0, ttl 1, id 51530, offset 0, flags [none], proto UDP (17), length 64)
192.168.178.61.1143 > 8.8.8.8.33000: UDP, *** length 36 ***
IP (tos 0xc0, ttl 64, id 34040, offset 0, flags [none], proto ICMP (1), length 92)
192.168.178.1 > 192.168.178.61: ICMP time exceeded in-transit, length 72
IP (tos 0x0, ttl 1, id 51530, offset 0, flags [none], proto UDP (17), length 64)
192.168.178.61.1143 > 8.8.8.8.33000: UDP, length 36
2nd packet (TTL=2):
IP (tos 0x0, ttl 2, id 17256, offset 0, flags [none], proto UDP (17), length 64)
192.168.178.61.1143 > 8.8.8.8.33001: UDP, *** bad length 11256 > 36 ***
IP (tos 0xc0, ttl 254, id 6765, offset 0, flags [none], proto ICMP (1), length 56)
62.52.201.192 > 192.168.178.61: ICMP time exceeded in-transit, length 36
IP (tos 0x0, ttl 1, id 17256, offset 0, flags [none], proto UDP (17), length 64)
192.168.178.61.1143 > 8.8.8.8.33001: UDP, bad length 11256 > 36
3rd packet (TTL=3):
IP (tos 0x0, ttl 3, id 54343, offset 0, flags [none], proto UDP (17), length 64)
192.168.178.61.1143 > 8.8.8.8.33002: UDP, *** bad length 11256 > 36 ***
IP (tos 0x0, ttl 253, id 0, offset 0, flags [none], proto ICMP (1), length 56)
62.53.22.220 > 192.168.178.61: ICMP time exceeded in-transit, length 36
IP (tos 0x0, ttl 1, id 54343, offset 0, flags [none], proto UDP (17), length 64)
192.168.178.61.1143 > 8.8.8.8.33002: UDP, bad length 11256 > 36
rewolff [Sat, 26 Dec 2015 11:08:47 +0000 (12:08 +0100)]
Merge pull request #100 from trittweiler/master
Fix and improvements for --csv
Tobias Rittweiler [Fri, 25 Dec 2015 12:11:00 +0000 (13:11 +0100)]
asn.h: Guard against being included twice.
In order to surpress a warning on clang.
Tobias Rittweiler [Fri, 25 Dec 2015 11:57:32 +0000 (12:57 +0100)]
--csv: Print a header line as the first line which names all columns.
Tobias Rittweiler [Fri, 25 Dec 2015 11:56:26 +0000 (12:56 +0100)]
--csv: Don't print spaces in columns.
Tobias Rittweiler [Fri, 25 Dec 2015 11:51:19 +0000 (12:51 +0100)]
Fix typo in csv_close() that prevented any of the data columns from being printed.
rewolff [Fri, 13 Nov 2015 08:30:02 +0000 (09:30 +0100)]
Merge pull request #98 from garethrandall/doc-updates
State that Github is the preferred way to report bugs.
Gareth Randall [Thu, 12 Nov 2015 20:36:07 +0000 (20:36 +0000)]
State that Github is the preferred way to report bugs.
rewolff [Wed, 11 Nov 2015 22:57:06 +0000 (23:57 +0100)]
Merge pull request #91 from garethrandall/master
Some improvements to the documentation.
rewolff [Mon, 12 Oct 2015 13:10:17 +0000 (15:10 +0200)]
Merge pull request #93 from Narthorn/master
curses: Fix background transparency in terminal
Narthorn [Mon, 12 Oct 2015 11:24:57 +0000 (13:24 +0200)]
curses: Fix background transparency in terminal
Patch comes from, and closes traviscross/mtr#72.
Gareth Randall [Thu, 1 Oct 2015 17:28:10 +0000 (17:28 +0000)]
Add a section about granting limited security capabilities.
Gareth Randall [Thu, 1 Oct 2015 17:27:53 +0000 (17:27 +0000)]
Fix typos and update mailing list references.
rewolff [Wed, 30 Sep 2015 16:38:28 +0000 (18:38 +0200)]
Merge pull request #90 from garethrandall/master
Remove a warning message at compile time.
Gareth Randall [Wed, 30 Sep 2015 16:05:40 +0000 (16:05 +0000)]
Remove a warning message at compile time.
Warning was produced when running:
$ ./configure --without-gtk
$ make
display.c: In function ‘display_keyaction’:
display.c:169:5: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
return mtr_curses_keyaction();
^
rewolff [Thu, 9 Jul 2015 05:53:48 +0000 (07:53 +0200)]
Merge pull request #85 from culugyx/x-tag-r1
Raw output: add x for a ping-packet-sent event, add sequence numbers to the replies.
Guo Yixuan [Tue, 14 Apr 2015 23:53:34 +0000 (19:53 -0400)]
Raw output: add x for a ping-packet-sent event.
This is needed for loss rate calculation.
Supports ICMP/UDP/TCP.
Also adds sequence number to pingline.
rewolff [Mon, 29 Jun 2015 17:10:27 +0000 (19:10 +0200)]
Merge pull request #84 from garethrandall/master
Filled in some of the missing man page sections.
Gareth Randall [Mon, 29 Jun 2015 16:47:23 +0000 (16:47 +0000)]
Filled in some of the missing man page sections.
rewolff [Fri, 5 Jun 2015 13:07:52 +0000 (15:07 +0200)]
Merge pull request #81 from swordfeng/sctp-support
Add SCTP support by swordfeng
swordfeng [Fri, 5 Jun 2015 12:43:04 +0000 (20:43 +0800)]
fix sctp header structure
swordfeng [Fri, 5 Jun 2015 12:23:08 +0000 (20:23 +0800)]
remove comment
swordfeng [Fri, 5 Jun 2015 12:16:29 +0000 (20:16 +0800)]
Add SCTP support (same way with tcp)
R.E. Wolff [Mon, 6 Apr 2015 09:39:26 +0000 (11:39 +0200)]
changed the name of the ping timout timer from 'tag' to 'ping timeout timer'
rewolff [Mon, 6 Apr 2015 09:38:09 +0000 (11:38 +0200)]
Merge pull request #79 from kurkav/pauseFix
Fixed behaviour of Pause button
Vojtech Kurka [Sun, 5 Apr 2015 14:03:10 +0000 (16:03 +0200)]
Fixed behaviour of Pause button
rewolff [Thu, 26 Mar 2015 06:31:12 +0000 (07:31 +0100)]
Merge pull request #77 from dhduvall/master
Fix issue #76: rationalize the discovery of a terminal handling library
Danek Duvall [Wed, 25 Mar 2015 17:10:49 +0000 (10:10 -0700)]
Fix issue #76: rationalize the discovery of a terminal handling library
R.E. Wolff [Mon, 23 Mar 2015 08:09:59 +0000 (09:09 +0100)]
modified name of timeout variable to prevent warning on solaris.
R.E. Wolff [Sun, 15 Mar 2015 17:38:12 +0000 (18:38 +0100)]
fix for printing space field in XML.
rewolff [Sat, 10 Jan 2015 10:56:06 +0000 (11:56 +0100)]
Merge pull request #71 from aquerubin/newdns
Correct psize bug for IPv6. -- Thanks!
aquerubin [Sat, 10 Jan 2015 08:35:36 +0000 (22:35 -1000)]
Correct psize for IPv6.
rewolff [Mon, 5 Jan 2015 18:07:58 +0000 (19:07 +0100)]
Merge pull request #70 from kiwano/master
Added --displaymode option
Kris Coward [Mon, 5 Jan 2015 17:17:48 +0000 (12:17 -0500)]
Added --displaymode option
Rogier Wolff [Mon, 29 Dec 2014 08:22:46 +0000 (09:22 +0100)]
added use-default-colors...
R.E. Wolff [Sun, 28 Dec 2014 16:39:16 +0000 (17:39 +0100)]
removed warning about IPV6 socket when IPV6 is not available at runtime
Rogier Wolff [Sat, 20 Dec 2014 09:04:11 +0000 (10:04 +0100)]
removed AC check for features newdns doesn't use
R.E. Wolff [Wed, 10 Dec 2014 14:57:12 +0000 (15:57 +0100)]
Merge branch 'master' of github.com:traviscross/mtr
R.E. Wolff [Wed, 10 Dec 2014 14:57:01 +0000 (15:57 +0100)]
explanation of the version numbers in NEWS.
rewolff [Tue, 9 Dec 2014 14:01:11 +0000 (15:01 +0100)]
Merge pull request #63 from garethrandall/readme-fixes
Corrected the "without gtk" reference to "./configure --without-gtk", be...
Gareth Randall [Tue, 9 Dec 2014 13:16:32 +0000 (13:16 +0000)]
Corrected the "without gtk" reference to "./configure --without-gtk", because the previous version "--WITHOUT_GTK" caused an error.
The error message was:
configure: error: unrecognized option: `--WITHOUT_GTK'
Also fixed a couple of README typos.
R.E. Wolff [Tue, 9 Dec 2014 11:20:57 +0000 (12:20 +0100)]
The release script bumped the version number
R.E. Wolff [Tue, 9 Dec 2014 11:20:16 +0000 (12:20 +0100)]
Merge branch 'newdns' of https://github.com/traviscross/mtr into newdns
rewolff [Sat, 6 Dec 2014 08:16:04 +0000 (09:16 +0100)]
Merge pull request #61 from dmbaturin/master
Make XML report output well formed.
Daniil Baturin [Sat, 6 Dec 2014 04:58:43 +0000 (10:58 +0600)]
Make XML report output well formed.
Remove % from Loss tag name, add quotes around attribute names,
add XML header.
Roger Wolff [Thu, 30 Oct 2014 07:58:19 +0000 (08:58 +0100)]
fix ping graph bug
Roger Wolff [Tue, 26 Aug 2014 07:15:36 +0000 (09:15 +0200)]
One more patch to fix a getnameinfo corruption problem. -- AQ
Roger Wolff [Mon, 25 Aug 2014 08:07:42 +0000 (10:07 +0200)]
removed last debug output from dns.c
Roger Wolff [Mon, 25 Aug 2014 08:05:27 +0000 (10:05 +0200)]
AQ: Added include for redhat, and fixed salen for BSD
Roger Wolff [Mon, 18 Aug 2014 06:52:14 +0000 (08:52 +0200)]
Merge branch 'master' of github.com:traviscross/mtr into newdns
Roger Wolff [Mon, 18 Aug 2014 06:51:45 +0000 (08:51 +0200)]
merged antonios's bufsize fixes
rewolff [Mon, 18 Aug 2014 05:53:07 +0000 (07:53 +0200)]
Merge pull request #58 from elindsey/master
document which version added TCP support
Eli Lindsey [Sun, 17 Aug 2014 15:53:22 +0000 (08:53 -0700)]
document which version added TCP support
Roger Wolff [Sun, 17 Aug 2014 15:15:11 +0000 (17:15 +0200)]
removed the include mess...
Roger Wolff [Sun, 17 Aug 2014 14:30:57 +0000 (16:30 +0200)]
moved towards IPV6 compatibilty...
Roger Wolff [Sun, 17 Aug 2014 13:09:01 +0000 (15:09 +0200)]
New DNS works for IPV4....
rewolff [Sat, 16 Aug 2014 08:10:09 +0000 (10:10 +0200)]
Merge pull request #57 from hloeung/master
Revert previous set of changes that turned out to be "debian-only".