]> git.ipfire.org Git - thirdparty/mtr.git/log
thirdparty/mtr.git
9 years agoadd max-unknown option 120/head
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.

9 years agoMerge pull request #118 from zorun/improve_ipinfo
rewolff [Thu, 9 Jun 2016 21:42:49 +0000 (23:42 +0200)] 
Merge pull request #118 from zorun/improve_ipinfo

Improve ipinfo

9 years agoMerge pull request #119 from zorun/cosmetic
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

9 years agoFix wrap-around bug when displaying IP info (-y option) 118/head
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

9 years agoCosmetic cleanup of the option-parsing code 119/head
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).

9 years agoDocument the -y option in the manpage
Baptiste Jonglez [Thu, 9 Jun 2016 16:50:13 +0000 (17:50 +0100)] 
Document the -y option in the manpage

9 years agoAllow enabling IP info and ASN lookup from the curses interface
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).

9 years agoMerge pull request #114 from aquerubin/master
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.

9 years agoUse setcap instead of setuid when installing the binary. 114/head
Antonio Querubin [Tue, 3 May 2016 08:43:08 +0000 (22:43 -1000)] 
Use setcap instead of setuid when installing the binary.

9 years agoMerge pull request #112 from aquerubin/master
rewolff [Tue, 3 May 2016 05:11:11 +0000 (07:11 +0200)] 
Merge pull request #112 from aquerubin/master

Correct psize for IPv6.

9 years agoCorrect psize for IPv6. 112/head
aquerubin [Sat, 10 Jan 2015 08:35:36 +0000 (22:35 -1000)] 
Correct psize for IPv6.

9 years agonet.c fix from AQ.
R.E. Wolff [Fri, 29 Apr 2016 14:43:57 +0000 (16:43 +0200)] 
net.c fix from AQ.

9 years agoMerge pull request #110 from russor/master
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

9 years agocorrect checksum calculation when adding the overflow overflows 110/head
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

9 years agocopy odd byte into a 16-bit temp value; used bit-sized types for calrity
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

9 years agoendian neutral placement of alternate checksum
russor [Mon, 18 Apr 2016 20:50:25 +0000 (13:50 -0700)] 
endian neutral placement of alternate checksum

9 years agofix placement of zeros when running alternate udp checksum
russor [Mon, 18 Apr 2016 20:47:14 +0000 (13:47 -0700)] 
fix placement of zeros when running alternate udp checksum

9 years agofix improper aliasing
russor [Mon, 18 Apr 2016 20:28:43 +0000 (13:28 -0700)] 
fix improper aliasing

9 years agoautomatically set udp address if needed
russor [Fri, 26 Feb 2016 01:30:19 +0000 (17:30 -0800)] 
automatically set udp address if needed

9 years agoset the local address for display if it was bound
russor [Fri, 26 Feb 2016 00:39:13 +0000 (16:39 -0800)] 
set the local address for display if it was bound

9 years agofix checksum for odd sized packets
russor [Fri, 8 Apr 2016 23:34:26 +0000 (16:34 -0700)] 
fix checksum for odd sized packets

9 years agoallow setting local and remote port for UDP probing
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.

9 years agoMerge pull request #103 from jwilk/master
rewolff [Mon, 4 Jan 2016 11:50:14 +0000 (12:50 +0100)] 
Merge pull request #103 from jwilk/master

Fix typos

9 years agoFix typos. 103/head
Jakub Wilk [Mon, 4 Jan 2016 11:42:23 +0000 (12:42 +0100)] 
Fix typos.

9 years agoMerge pull request #102 from tbaschak/32bitasns
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

9 years agoUpdate asn.c - 32bit asn widths 102/head
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.

9 years agoMerge pull request #101 from trittweiler/master
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.

9 years agoFix setting length field of UDP header to broken value on BSD systems. 101/head
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

9 years agoMerge pull request #100 from trittweiler/master
rewolff [Sat, 26 Dec 2015 11:08:47 +0000 (12:08 +0100)] 
Merge pull request #100 from trittweiler/master

Fix and improvements for --csv

9 years agoasn.h: Guard against being included twice. 100/head
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.

9 years ago--csv: Print a header line as the first line which names all columns.
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.

9 years ago--csv: Don't print spaces in columns.
Tobias Rittweiler [Fri, 25 Dec 2015 11:56:26 +0000 (12:56 +0100)] 
--csv: Don't print spaces in columns.

9 years agoFix typo in csv_close() that prevented any of the data columns from being printed.
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.

9 years agoMerge pull request #98 from garethrandall/doc-updates
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.

9 years agoState that Github is the preferred way to report bugs. 98/head
Gareth Randall [Thu, 12 Nov 2015 20:36:07 +0000 (20:36 +0000)] 
State that Github is the preferred way to report bugs.

9 years agoMerge pull request #91 from garethrandall/master
rewolff [Wed, 11 Nov 2015 22:57:06 +0000 (23:57 +0100)] 
Merge pull request #91 from garethrandall/master

Some improvements to the documentation.

9 years agoMerge pull request #93 from Narthorn/master
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

9 years agocurses: Fix background transparency in terminal 93/head
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.

9 years agoAdd a section about granting limited security capabilities. 91/head
Gareth Randall [Thu, 1 Oct 2015 17:28:10 +0000 (17:28 +0000)] 
Add a section about granting limited security capabilities.

9 years agoFix typos and update mailing list references.
Gareth Randall [Thu, 1 Oct 2015 17:27:53 +0000 (17:27 +0000)] 
Fix typos and update mailing list references.

9 years agoMerge pull request #90 from garethrandall/master
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.

9 years agoRemove a warning message at compile time. 90/head
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();
     ^

10 years agoMerge pull request #85 from culugyx/x-tag-r1
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.

10 years agoRaw output: add x for a ping-packet-sent event. 85/head
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.

10 years agoMerge pull request #84 from garethrandall/master
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.

10 years agoFilled in some of the missing man page sections. 84/head
Gareth Randall [Mon, 29 Jun 2015 16:47:23 +0000 (16:47 +0000)] 
Filled in some of the missing man page sections.

10 years agoMerge pull request #81 from swordfeng/sctp-support
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

10 years agofix sctp header structure 81/head
swordfeng [Fri, 5 Jun 2015 12:43:04 +0000 (20:43 +0800)] 
fix sctp header structure

10 years agoremove comment
swordfeng [Fri, 5 Jun 2015 12:23:08 +0000 (20:23 +0800)] 
remove comment

10 years agoAdd SCTP support (same way with tcp)
swordfeng [Fri, 5 Jun 2015 12:16:29 +0000 (20:16 +0800)] 
Add SCTP support (same way with tcp)

10 years agochanged the name of the ping timout timer from 'tag' to 'ping timeout timer'
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'

10 years agoMerge pull request #79 from kurkav/pauseFix
rewolff [Mon, 6 Apr 2015 09:38:09 +0000 (11:38 +0200)] 
Merge pull request #79 from kurkav/pauseFix

Fixed behaviour of Pause button

10 years agoFixed behaviour of Pause button 79/head
Vojtech Kurka [Sun, 5 Apr 2015 14:03:10 +0000 (16:03 +0200)] 
Fixed behaviour of Pause button

10 years agoMerge pull request #77 from dhduvall/master
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

10 years agoFix issue #76: rationalize the discovery of a terminal handling library 77/head
Danek Duvall [Wed, 25 Mar 2015 17:10:49 +0000 (10:10 -0700)] 
Fix issue #76: rationalize the discovery of a terminal handling library

10 years agomodified name of timeout variable to prevent warning on solaris.
R.E. Wolff [Mon, 23 Mar 2015 08:09:59 +0000 (09:09 +0100)] 
modified name of timeout variable to prevent warning on solaris.

10 years agofix for printing space field in XML.
R.E. Wolff [Sun, 15 Mar 2015 17:38:12 +0000 (18:38 +0100)] 
fix for printing space field in XML.

10 years agoMerge pull request #70 from kiwano/master
rewolff [Mon, 5 Jan 2015 18:07:58 +0000 (19:07 +0100)] 
Merge pull request #70 from kiwano/master

Added --displaymode option

10 years agoAdded --displaymode option 70/head
Kris Coward [Mon, 5 Jan 2015 17:17:48 +0000 (12:17 -0500)] 
Added --displaymode option

10 years agoadded use-default-colors...
Rogier Wolff [Mon, 29 Dec 2014 08:22:46 +0000 (09:22 +0100)] 
added use-default-colors...

10 years agoremoved warning about IPV6 socket when IPV6 is not available at runtime
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

10 years agoMerge branch 'master' of github.com:traviscross/mtr
R.E. Wolff [Wed, 10 Dec 2014 14:57:12 +0000 (15:57 +0100)] 
Merge branch 'master' of github.com:traviscross/mtr

10 years agoexplanation of the version numbers in NEWS.
R.E. Wolff [Wed, 10 Dec 2014 14:57:01 +0000 (15:57 +0100)] 
explanation of the version numbers in NEWS.

10 years agoMerge pull request #63 from garethrandall/readme-fixes
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...

10 years agoCorrected the "without gtk" reference to "./configure --without-gtk", because the... 63/head
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.

10 years agoThe release script bumped the version number v0.86
R.E. Wolff [Tue, 9 Dec 2014 11:20:57 +0000 (12:20 +0100)] 
The release script bumped the version number

10 years agoMerge pull request #61 from dmbaturin/master
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.

10 years agoMake XML report output well formed. 61/head
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.

10 years agofix ping graph bug
Roger Wolff [Thu, 30 Oct 2014 07:58:19 +0000 (08:58 +0100)] 
fix ping graph bug

10 years agoMerge pull request #58 from elindsey/master
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

10 years agodocument which version added TCP support 58/head
Eli Lindsey [Sun, 17 Aug 2014 15:53:22 +0000 (08:53 -0700)] 
document which version added TCP support

10 years agoMerge pull request #57 from hloeung/master
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".

10 years agoRevert "Fixed to consider IPv6 nameservers and to also handle case where only IPv6... 57/head
Haw Loeung [Sat, 16 Aug 2014 00:06:15 +0000 (10:06 +1000)] 
Revert "Fixed to consider IPv6 nameservers and to also handle case where only IPv6 nameservers are specified."

This reverts commit f45352dcb7e92471edd0e69de950c30e78d00424.

10 years agoRevert "Make it more portable and also fixed dorequest() and dns_ack6() to include...
Haw Loeung [Fri, 15 Aug 2014 23:32:37 +0000 (09:32 +1000)] 
Revert "Make it more portable and also fixed dorequest() and dns_ack6() to include IPv6 nameservers."

This reverts commit 8e1bea50eee25c0ba8550254ad14fcba0614ed83.

10 years agoRevert "One more fix."
Haw Loeung [Fri, 15 Aug 2014 23:32:36 +0000 (09:32 +1000)] 
Revert "One more fix."

This reverts commit c02701de3bc91760b0f7af67a08d4b2189b6510f.

10 years agoRevert "modified hloeung's glibc test"
Haw Loeung [Fri, 15 Aug 2014 23:32:34 +0000 (09:32 +1000)] 
Revert "modified hloeung's glibc test"

This reverts commit ff22833854960be90648666e7fab22b6f9bdd616.

10 years agoRevert "fixed warning in net.c, fixed missing define of NSCOUNT in dns.c"
Haw Loeung [Fri, 15 Aug 2014 23:32:27 +0000 (09:32 +1000)] 
Revert "fixed warning in net.c, fixed missing define of NSCOUNT in dns.c"

This reverts commit 9a2aa603a0251148602731c1ae2857f032d0bad0.

10 years agofixed warning in net.c, fixed missing define of NSCOUNT in dns.c
Roger Wolff [Fri, 15 Aug 2014 09:48:16 +0000 (11:48 +0200)] 
fixed warning in net.c, fixed missing define of NSCOUNT in dns.c

10 years agomodified hloeung's glibc test
Roger Wolff [Fri, 15 Aug 2014 09:42:39 +0000 (11:42 +0200)] 
modified hloeung's glibc test

10 years agoOne more fix. 56/head
Haw Loeung [Fri, 15 Aug 2014 07:58:35 +0000 (17:58 +1000)] 
One more fix.

10 years agoMake it more portable and also fixed dorequest() and dns_ack6() to include IPv6 names...
Haw Loeung [Fri, 15 Aug 2014 07:55:02 +0000 (17:55 +1000)] 
Make it more portable and also fixed dorequest() and dns_ack6() to include IPv6 nameservers.

10 years agoFixed to consider IPv6 nameservers and to also handle case where only IPv6 nameserver...
Haw Loeung [Fri, 15 Aug 2014 02:25:20 +0000 (12:25 +1000)] 
Fixed to consider IPv6 nameservers and to also handle case where only IPv6 nameservers are specified.

11 years agoMerge pull request #53 from dballing/master
rewolff [Mon, 14 Jul 2014 14:05:40 +0000 (16:05 +0200)] 
Merge pull request #53 from dballing/master

Made the '?' bold-red

11 years agoImplemented the changes requested by maintainer for '?' color implementation. 53/head
Derek J. Balling [Mon, 14 Jul 2014 10:19:43 +0000 (06:19 -0400)] 
Implemented the changes requested by maintainer for '?' color implementation.

11 years agoMade the '?' bold-red
Derek J. Balling [Sun, 13 Jul 2014 20:21:39 +0000 (16:21 -0400)] 
Made the '?' bold-red

11 years agoMerge pull request #52 from zorun/documentation-fixes
rewolff [Sat, 12 Jul 2014 07:32:45 +0000 (09:32 +0200)] 
Merge pull request #52 from zorun/documentation-fixes

Documentation fixes

11 years agoPrint a meaningful error when -M is used but SO_MARK is not supported 52/head
Baptiste Jonglez [Sat, 12 Jul 2014 05:50:52 +0000 (14:50 +0900)] 
Print a meaningful error when -M is used but SO_MARK is not supported

11 years agoDocument environment variables, especially MTR_OPTIONS
Baptiste Jonglez [Sat, 12 Jul 2014 05:50:27 +0000 (14:50 +0900)] 
Document environment variables, especially MTR_OPTIONS

11 years agoClarify manpage regarding -a option
Baptiste Jonglez [Sat, 12 Jul 2014 05:28:11 +0000 (14:28 +0900)] 
Clarify manpage regarding -a option

11 years agoMerge pull request #50 from kilobyte/master
rewolff [Sat, 12 Jul 2014 05:26:00 +0000 (07:26 +0200)] 
Merge pull request #50 from kilobyte/master

Colourize the ping graph in curses.
I've been thinking about making this an option (i.e. you can disable this on the command line).
Decision: No, set your terminal type to something that doesn't support colors if you don't want colors.

11 years agoImprove command-line handling and documentation
Baptiste Jonglez [Sat, 12 Jul 2014 04:40:45 +0000 (13:40 +0900)] 
Improve command-line handling and documentation

In particular:

- generally improve the look of the man page and help message
- add missing command line options to the man page
- reorder command line options to be more consistent
- use the same order for command line options everywhere (man page, code, help message)
- add missing switches in getopt_long call (-M, -F)
- fix incorrect switch in getopt_long call (-Z)

Note that a few options were never documented (they are now marked as
"MISSING" in the man page).

11 years agoColourize the ping graph in curses. 50/head
Adam Borowski [Fri, 11 Jul 2014 19:47:03 +0000 (21:47 +0200)] 
Colourize the ping graph in curses.

The display used, .123abc> is nearly completely unreadable at a glance.
We can use colours, as the only terminal from last 25 years I'm aware of
that did not support colours was Win3.1/95 telnet.exe, and even that did
degrade to monochrome rather than to garbage.

11 years agofixed len confusion for IPV4 / IPV6 addresses
R.E. Wolff [Fri, 20 Jun 2014 12:26:36 +0000 (14:26 +0200)] 
fixed len confusion for IPV4 / IPV6 addresses

11 years agoMerge pull request #48 from jta/master
rewolff [Thu, 19 Jun 2014 03:52:51 +0000 (05:52 +0200)] 
Merge pull request #48 from jta/master

Add support for setting SO_MARK through --mark option.

11 years agoAdd support for setting SO_MARK through --mark option. 48/head
João Taveira Araújo [Wed, 18 Jun 2014 18:55:52 +0000 (19:55 +0100)] 
Add support for setting SO_MARK through --mark option.

This emulates the -m option for ping provided in iputils. When coupled
with iptables, this option provides a means of using source routing to
force probes through a consistent nexthop on multihomed systems.

11 years agoMerge pull request #46 from dhduvall/master
rewolff [Sat, 14 Jun 2014 06:29:23 +0000 (08:29 +0200)] 
Merge pull request #46 from dhduvall/master

Fix a potential buffer overrun from an off-by-one error.

11 years agoFix a potential buffer overrun from an off-by-one error. 46/head
Danek Duvall [Fri, 13 Jun 2014 22:15:12 +0000 (15:15 -0700)] 
Fix a potential buffer overrun from an off-by-one error.

11 years agofixed DNS confusion in select.c if dnsfd(6) == 0
R.E. Wolff [Mon, 28 Apr 2014 14:55:47 +0000 (16:55 +0200)] 
fixed DNS confusion in select.c if dnsfd(6) == 0

11 years agoMerge pull request #41 from aquerubin/master
rewolff [Wed, 29 Jan 2014 06:21:13 +0000 (22:21 -0800)] 
Merge pull request #41 from aquerubin/master

Restore the resolver query order to their relative position in resolv.conf

11 years agoRestore the name resolver query order to their relative position in 41/head
aquerubin [Wed, 29 Jan 2014 00:50:06 +0000 (14:50 -1000)] 
Restore the name resolver query order to their relative position in
/etc/resolv.conf (the IPv6 resolver patch I submitted earlier broke this
normal, expected behaviour).  Ie. currently, IPv6 resolvers are always
queried before IPv4 resolvers regardless of their position in
resolv.conf.

Update my email address in AUTHORS.