]> git.ipfire.org Git - thirdparty/mtr.git/log
thirdparty/mtr.git
3 weeks agorefactor(dns): share hostname usefulness helper 618/head
Darafei Praliaskouski [Fri, 8 May 2026 12:09:57 +0000 (16:09 +0400)] 
refactor(dns): share hostname usefulness helper

3 weeks agoMerge pull request #596 from Komzpa/darafei/gtk-formatters-snprintf
Roger Wolff [Fri, 8 May 2026 12:08:23 +0000 (14:08 +0200)] 
Merge pull request #596 from Komzpa/darafei/gtk-formatters-snprintf

fix(gtk): bound formatter output

3 weeks agoMerge pull request #599 from Komzpa/darafei/cygwin-initialize-icmp-remote
Roger Wolff [Fri, 8 May 2026 12:05:55 +0000 (14:05 +0200)] 
Merge pull request #599 from Komzpa/darafei/cygwin-initialize-icmp-remote

fix(cygwin): initialize ICMP reply address

3 weeks agoMerge pull request #601 from Komzpa/darafei/mtr-packet-startup-hint
Roger Wolff [Fri, 8 May 2026 12:04:35 +0000 (14:04 +0200)] 
Merge pull request #601 from Komzpa/darafei/mtr-packet-startup-hint

fix(cmdpipe): clarify mtr-packet startup failures

3 weeks agoMerge pull request #603 from Komzpa/darafei/cleanup-dns-processes
Roger Wolff [Fri, 8 May 2026 12:03:03 +0000 (14:03 +0200)] 
Merge pull request #603 from Komzpa/darafei/cleanup-dns-processes

fix(dns): harden resolver lifecycle and results

3 weeks agoMerge pull request #604 from Komzpa/darafei/ipv6-bindtodevice-capability
Roger Wolff [Fri, 8 May 2026 11:58:16 +0000 (13:58 +0200)] 
Merge pull request #604 from Komzpa/darafei/ipv6-bindtodevice-capability

fix(packet): retain bind-to-device capability

3 weeks agoMerge pull request #606 from Komzpa/darafei/remove-csv-close-dead-loop
Roger Wolff [Fri, 8 May 2026 11:50:15 +0000 (13:50 +0200)] 
Merge pull request #606 from Komzpa/darafei/remove-csv-close-dead-loop

refactor(csv): remove unused close loop

3 weeks agoMerge pull request #607 from Komzpa/darafei/remove-csv-separator-note
Roger Wolff [Fri, 8 May 2026 11:48:45 +0000 (13:48 +0200)] 
Merge pull request #607 from Komzpa/darafei/remove-csv-separator-note

docs: align CSV separator description

3 weeks agoMerge pull request #612 from Komzpa/darafei/document-asn-disable
Roger Wolff [Fri, 8 May 2026 11:41:59 +0000 (13:41 +0200)] 
Merge pull request #612 from Komzpa/darafei/document-asn-disable

docs: clarify ASN lookup defaults

3 weeks agoMerge pull request #613 from Komzpa/darafei/report-hop-errors
Roger Wolff [Fri, 8 May 2026 11:41:08 +0000 (13:41 +0200)] 
Merge pull request #613 from Komzpa/darafei/report-hop-errors

fix(report): show hop errors in report outputs

3 weeks agoMerge pull request #614 from Komzpa/darafei/explain-packet-permission-denied
Roger Wolff [Fri, 8 May 2026 11:38:41 +0000 (13:38 +0200)] 
Merge pull request #614 from Komzpa/darafei/explain-packet-permission-denied

fix(cmdpipe): explain probe permission errors

3 weeks agoMerge branch 'master' of github.com:traviscross/mtr
R.E. Wolff [Fri, 8 May 2026 11:37:18 +0000 (13:37 +0200)] 
Merge branch 'master' of github.com:traviscross/mtr

3 weeks agoFixed some irritating compiler warnings
R.E. Wolff [Fri, 8 May 2026 11:37:00 +0000 (13:37 +0200)] 
Fixed some irritating compiler warnings

3 weeks agoMerge pull request #571 from Komzpa/codex/document-default-ports
Roger Wolff [Fri, 8 May 2026 11:23:59 +0000 (13:23 +0200)] 
Merge pull request #571 from Komzpa/codex/document-default-ports

packet: document and constrain default UDP ports

3 weeks agofix(report): show hop errors in report outputs 613/head
Darafei Praliaskouski [Thu, 7 May 2026 22:19:27 +0000 (02:19 +0400)] 
fix(report): show hop errors in report outputs

3 weeks agofix(dns): check resolver pipe setup failures 603/head
Darafei Praliaskouski [Thu, 7 May 2026 22:06:11 +0000 (02:06 +0400)] 
fix(dns): check resolver pipe setup failures

3 weeks agofix(dns): ignore empty PTR hostnames
Darafei Praliaskouski [Thu, 7 May 2026 22:02:00 +0000 (02:02 +0400)] 
fix(dns): ignore empty PTR hostnames

3 weeks agofix(cmdpipe): explain probe permission errors 614/head
Darafei Praliaskouski [Thu, 7 May 2026 22:21:31 +0000 (02:21 +0400)] 
fix(cmdpipe): explain probe permission errors

3 weeks agodocs: clarify ASN lookup defaults 612/head
Darafei Praliaskouski [Thu, 7 May 2026 22:15:37 +0000 (02:15 +0400)] 
docs: clarify ASN lookup defaults

3 weeks agodocs: align CSV separator description 607/head
Darafei Praliaskouski [Thu, 7 May 2026 21:59:23 +0000 (01:59 +0400)] 
docs: align CSV separator description

3 weeks agorefactor(csv): remove unused close loop 606/head
Darafei Praliaskouski [Thu, 7 May 2026 21:56:34 +0000 (01:56 +0400)] 
refactor(csv): remove unused close loop

3 weeks agofix(packet): retain bind-to-device capability 604/head
Darafei Praliaskouski [Thu, 7 May 2026 21:50:58 +0000 (01:50 +0400)] 
fix(packet): retain bind-to-device capability

3 weeks agofix(dns): terminate resolver subprocesses on exit
Darafei Praliaskouski [Thu, 7 May 2026 21:45:35 +0000 (01:45 +0400)] 
fix(dns): terminate resolver subprocesses on exit

3 weeks agofix(cmdpipe): clarify mtr-packet startup failures 601/head
Darafei Praliaskouski [Thu, 7 May 2026 21:37:10 +0000 (01:37 +0400)] 
fix(cmdpipe): clarify mtr-packet startup failures

3 weeks agofix(cygwin): initialize ICMP reply address 599/head
Darafei Praliaskouski [Thu, 7 May 2026 21:24:02 +0000 (01:24 +0400)] 
fix(cygwin): initialize ICMP reply address

3 weeks agofix(gtk): bound formatter output 596/head
Darafei Praliaskouski [Thu, 7 May 2026 21:14:40 +0000 (01:14 +0400)] 
fix(gtk): bound formatter output

3 weeks agopacket: avoid privileged default udp source ports 571/head
Darafei Praliaskouski [Thu, 7 May 2026 16:34:54 +0000 (20:34 +0400)] 
packet: avoid privileged default udp source ports

3 weeks agoMerge pull request #570 from Komzpa/codex/fix-ci-workflow
Roger Wolff [Thu, 7 May 2026 16:29:28 +0000 (18:29 +0200)] 
Merge pull request #570 from Komzpa/codex/fix-ci-workflow

ci: fix GitHub Actions test workflow

3 weeks agodocs: document default trace ports
Darafei Praliaskouski [Thu, 7 May 2026 15:55:45 +0000 (19:55 +0400)] 
docs: document default trace ports

3 weeks agoci: fix GitHub Actions test workflow 570/head
Darafei Praliaskouski [Thu, 7 May 2026 15:53:12 +0000 (19:53 +0400)] 
ci: fix GitHub Actions test workflow

3 weeks agoMerge branch 'master' of github.com:traviscross/mtr
R.E. Wolff [Thu, 7 May 2026 15:50:57 +0000 (17:50 +0200)] 
Merge branch 'master' of github.com:traviscross/mtr

3 weeks agoAdded explanation why restricively running under sudo is not a good idea
R.E. Wolff [Thu, 7 May 2026 15:50:40 +0000 (17:50 +0200)] 
Added explanation why restricively running under sudo is not a good idea

3 weeks agoMerge pull request #569 from Komzpa/fixer-throttle-curses-redraws
Roger Wolff [Thu, 7 May 2026 15:29:25 +0000 (17:29 +0200)] 
Merge pull request #569 from Komzpa/fixer-throttle-curses-redraws

ui: throttle curses redraws during packet bursts

4 weeks agoui: throttle curses redraws during packet bursts 569/head
Darafei Praliaskouski [Fri, 1 May 2026 13:22:45 +0000 (17:22 +0400)] 
ui: throttle curses redraws during packet bursts

5 weeks agoMerge pull request #568 from mayconrcmello/fix/cygwin-braille
Roger Wolff [Sun, 26 Apr 2026 13:38:30 +0000 (15:38 +0200)] 
Merge pull request #568 from mayconrcmello/fix/cygwin-braille

ui: fix braille display mode on Cygwin

I would find it neater to add a check for the header that cygwin uses, instead of checking for cygwin and just including that. This involves messing with the autoconf stuff which I'm not familiar with. So that's an item for the "todo list".

5 weeks agoui: fix braille display mode on Cygwin 568/head
Maycon [Fri, 24 Apr 2026 15:23:13 +0000 (12:23 -0300)] 
ui: fix braille display mode on Cygwin

Three issues prevented the braille display from rendering correctly
when mtr is built with Cygwin:

1. Wrong ncurses header: Cygwin ships <ncurses.h> as the non-wide
   variant, which does not declare addwstr() or add_wch(). Include
   <ncursesw/ncurses.h> instead when building with braille support.

2. Wrong output function: printw("%ls", wstr) relies on the C library
   wide-to-multibyte conversion path, which can misbehave when the
   locale is not fully set up before ncurses initialises. Use
   addwstr(), the proper ncursesw API, instead.

3. Locale and console codepage: setlocale(LC_ALL, "") on Cygwin
   inherits the Windows ANSI codepage (e.g. CP1252), breaking UTF-8
   output. Explicitly request C.UTF-8 and set the Windows console
   output codepage to 65001 (UTF-8) before initscr().

5 weeks agoui: replace non-BMP braille char U+1FB10 with U+28FF
Maycon [Fri, 24 Apr 2026 15:22:35 +0000 (12:22 -0300)] 
ui: replace non-BMP braille char U+1FB10 with U+28FF

🮐 (U+1FB10) lives outside the Basic Multilingual Plane and requires
a UTF-16 surrogate pair when wchar_t is 16 bits (Windows, Cygwin).
Passing a surrogate pair to wide-char ncurses functions produces
corrupted output on those platforms.

Replace all three uses with ⣿ (U+28FF), the filled braille pattern,
which is the visually closest BMP character and avoids the issue on
any platform where sizeof(wchar_t) == 2.

2 months agoMerge pull request #567 from psumbera/solaris
Roger Wolff [Thu, 19 Mar 2026 13:34:58 +0000 (14:34 +0100)] 
Merge pull request #567 from psumbera/solaris

packet: skip bind() on Solaris raw ICMPv4 sockets

2 months agopacket: skip bind() on Solaris raw ICMPv4 sockets 567/head
Petr Sumbera [Thu, 19 Mar 2026 09:34:32 +0000 (10:34 +0100)] 
packet: skip bind() on Solaris raw ICMPv4 sockets

Commit d529dbeefc6d ("Change UDP and ICMP sockets binding to accept a
source IP from the -a CLI option") started binding the shared IPv4 raw
ICMP send socket in construct_ip4_packet().

On Solaris/illumos this breaks default ICMP probes: bind() on that raw
socket can fail with EINVAL, and mtr exits with:

  mtr: mtr-packet reported invalid argument

This does not affect TCP or UDP probes, and mtr 0.95 worked because the
raw ICMPv4 path did not bind the socket.

Keep the pre-0.96 behavior on __sun by skipping bind() for raw ICMPv4
sockets. This restores default ICMP probing on Solaris/illumos without
changing Linux behavior.

Note that -a source address selection is not enforced for raw ICMPv4 on
Solaris/illumos, since those platforms cannot reliably use bind() on the
shared raw ICMP socket in this code path.

2 months agoMerge pull request #565 from AradCohen/fix_dos_bug_and_add_fuzzing
Roger Wolff [Sun, 15 Mar 2026 13:03:20 +0000 (14:03 +0100)] 
Merge pull request #565 from AradCohen/fix_dos_bug_and_add_fuzzing

dos fixed, oss fuzz integration added

2 months agofix: formatting in deconstruct unix II 565/head
aradcoh [Sat, 14 Mar 2026 23:28:27 +0000 (01:28 +0200)] 
fix: formatting in deconstruct unix II

2 months agofix: formatting in deconstruct unix
aradcoh [Sat, 14 Mar 2026 23:27:13 +0000 (01:27 +0200)] 
fix: formatting in deconstruct unix

2 months agodos fixed, oss fuzz integration added
aradcoh [Sat, 14 Mar 2026 22:48:14 +0000 (00:48 +0200)] 
dos fixed, oss fuzz integration added

4 months agoMerge pull request #563 from bluPhy/master
Roger Wolff [Sun, 25 Jan 2026 12:29:25 +0000 (13:29 +0100)] 
Merge pull request #563 from bluPhy/master

Fix typos in comments and docstrings across codebase

4 months agoFix typos in comments and docstrings across codebase 563/head
bluPhy [Sat, 24 Jan 2026 05:10:35 +0000 (00:10 -0500)] 
Fix typos in comments and docstrings across codebase

Corrected several spelling errors such as 'unparseable' to 'unparsable', 'paramters' to 'parameters', 'virutal' to 'virtual', 'withing' to 'within', and 'non-existant' to 'non-existent' in both source and test files to improve code clarity and documentation accuracy.

5 months agoIncluded apple ASN fix
R.E. Wolff [Tue, 2 Dec 2025 07:35:16 +0000 (08:35 +0100)] 
Included apple ASN fix

6 months agoMerge pull request #558 from eakteam/patch-1
Roger Wolff [Mon, 3 Nov 2025 16:47:59 +0000 (17:47 +0100)] 
Merge pull request #558 from eakteam/patch-1

Update split.c : Report tenths of millisecond times like throughout the rest of MTR.

6 months agoUpdate split.c 558/head
Emin Kokalari [Mon, 3 Nov 2025 15:56:38 +0000 (16:56 +0100)] 
Update split.c

Enhanced the ping times from Int to Float values

7 months agoUpgraded maxpacket to 64k. Fixes #553
R.E. Wolff [Fri, 31 Oct 2025 16:34:29 +0000 (17:34 +0100)] 
Upgraded maxpacket to 64k. Fixes #553

8 months agoMerge pull request #548 from dvallyanov/master
Roger Wolff [Fri, 26 Sep 2025 11:08:41 +0000 (13:08 +0200)] 
Merge pull request #548 from dvallyanov/master

fix numhosts calculation. Improve -D (--due-ttl) option

8 months agofix numhosts calculation. Improve -D (--due-ttl) option 548/head
dvallyanov [Fri, 26 Sep 2025 09:04:20 +0000 (12:04 +0300)] 
fix numhosts calculation. Improve -D (--due-ttl) option

8 months agofix numhosts calculation. Improve -D (--due-ttl) option 547/head
Dmitrii Allyanov [Mon, 15 Sep 2025 09:44:38 +0000 (09:44 +0000)] 
fix numhosts calculation. Improve -D (--due-ttl) option

- numhosts did not take fstTTL into account when calculating the number of hosts in a batch.
- maxUnknown or maxTTL values ​​are now taken into account after the set TTL value is reached,
  when the -D (--due-ttl) option is enabled.

8 months agoMerge pull request #546 from dvallyanov/due-ttl-option
Roger Wolff [Wed, 10 Sep 2025 20:10:44 +0000 (22:10 +0200)] 
Merge pull request #546 from dvallyanov/due-ttl-option

Add -D (--due-ttl) option.

8 months agoAdd -D (--due-ttl) option. 546/head
Dmitrii Allyanov [Wed, 10 Sep 2025 13:49:47 +0000 (13:49 +0000)] 
Add -D (--due-ttl) option.

Specifies the minimum TTL value that must be reached when sending network probes.

Closes feature request #295

10 months agoMerge pull request #540 from sevan/darwin-buildfix
Roger Wolff [Sun, 13 Jul 2025 15:15:40 +0000 (17:15 +0200)] 
Merge pull request #540 from sevan/darwin-buildfix

Legacy IOS system build fix.

10 months agopacket/construct_unix.c: Only set IPV6_TCLASS if defined. 540/head
Sevan Janiyan [Sat, 12 Jul 2025 18:13:51 +0000 (19:13 +0100)] 
packet/construct_unix.c: Only set IPV6_TCLASS if defined.

Resolves build on legacy systems with IPv6 stacks which lack RFC 3542
support e.g Mac OS X, before 10.6.

10 months agopacket/construct_unix.c: unused variable
Sevan Janiyan [Sat, 12 Jul 2025 18:12:44 +0000 (19:12 +0100)] 
packet/construct_unix.c: unused variable

10 months agoui/asn.c: No need to define BIND_8_COMPAT
Sevan Janiyan [Sat, 12 Jul 2025 18:06:39 +0000 (19:06 +0100)] 
ui/asn.c: No need to define BIND_8_COMPAT

Before OS X 10.6, defining BIND_8_COMPAT included arpa/nameser8_compat.h
which was removed in 10.6 and from then on included arpa/nameser_compat.h
until BIND_8_COMPAT was removed somewhere between macOS 10.13 & 10.15.

On systems before 10.6 this causes the build to break due to conflicts.

10 months agoMerge pull request #538 from Plutor/master
Roger Wolff [Wed, 9 Jul 2025 14:53:35 +0000 (16:53 +0200)] 
Merge pull request #538 from Plutor/master

Raw pings output time in usec. Correct args and docs.

10 months agoRaw pings output time in usec. Correct args and docs. 538/head
Logan Ingalls [Wed, 9 Jul 2025 14:33:08 +0000 (10:33 -0400)] 
Raw pings output time in usec. Correct args and docs.

(An alternate solution is to correct https://github.com/traviscross/mtr/blob/master/ui/net.c#L319, but that would potentially break workflows for users, so this is likely a more acceptable fix)

10 months agoAdded backticks around host. Fixes #536
R.E. Wolff [Sun, 6 Jul 2025 20:03:57 +0000 (22:03 +0200)] 
Added backticks around host. Fixes #536

10 months agoThe release script bumped the version number to 96 v0.96
R.E. Wolff [Sun, 6 Jul 2025 15:36:42 +0000 (17:36 +0200)] 
The release script bumped the version number to 96

10 months agoAdded Arad Cohen to NEWS
R.E. Wolff [Sun, 6 Jul 2025 15:26:00 +0000 (17:26 +0200)] 
Added Arad Cohen to NEWS

11 months agoMerge branch 'master' of github.com:traviscross/mtr
R.E. Wolff [Sun, 29 Jun 2025 12:06:08 +0000 (14:06 +0200)] 
Merge branch 'master' of github.com:traviscross/mtr

11 months agoAdded protection against use of MTR_PACKET under special circumstances
R.E. Wolff [Sun, 29 Jun 2025 12:06:00 +0000 (14:06 +0200)] 
Added protection against use of MTR_PACKET under special circumstances

11 months agoMerge pull request #534 from jlu5/fix/addrcmp-af-unspec
Roger Wolff [Sat, 14 Jun 2025 18:21:54 +0000 (20:21 +0200)] 
Merge pull request #534 from jlu5/fix/addrcmp-af-unspec

net: implement addrcmp for AF_UNSPEC

11 months agoMerge pull request #535 from jlu5/fix/split-mode-init
Roger Wolff [Sat, 14 Jun 2025 10:45:38 +0000 (12:45 +0200)] 
Merge pull request #535 from jlu5/fix/split-mode-init

Initialize lines to empty string in split mode

11 months agoInitialize lines to empty string in split mode 535/head
James Lu [Sat, 14 Jun 2025 02:59:56 +0000 (19:59 -0700)] 
Initialize lines to empty string in split mode

Split mode only prints lines that have changed, so initializing them to "???" means that unknown / hidden hops are never printed.

Fixes https://github.com/traviscross/mtr/issues/108

11 months agonet: implement addrcmp for AF_UNSPEC 534/head
James Lu [Sat, 14 Jun 2025 02:06:21 +0000 (19:06 -0700)] 
net: implement addrcmp for AF_UNSPEC

When mtr is compiled with IPv6 enabled, the GTK frontend sets the address family to AF_UNSPEC when changing destinations. However, addrcomp does not support this AF type, which causes all comparisons to not match. For the GTK frontend, this leads to a cascading failure when setting the destination to a host that does not resolve:

1. Upon setting ctl->af = AF_UNSPEC, net_max() will report that all hops have data, as no hops can match the previous remote address.
2. The GTK frontend tries to render a row for every hop, including its IP / hostname.
3. The guard in the GTK frontend to avoid looking up unknown addresses also fails, causing mtr to flood DNS packets and effectively hang.

Fixes https://github.com/traviscross/mtr/issues/533

13 months agoMerge pull request #531 from marek22k/xmlencoding
Roger Wolff [Wed, 23 Apr 2025 17:41:07 +0000 (19:41 +0200)] 
Merge pull request #531 from marek22k/xmlencoding

Set UTF-8 encoding for XML reports

13 months agoIncreased max probes
R.E. Wolff [Fri, 18 Apr 2025 07:47:55 +0000 (09:47 +0200)] 
Increased max probes

13 months agoMerge pull request #530 from bartman/bart/mtr-braille-graph
Roger Wolff [Mon, 14 Apr 2025 17:43:52 +0000 (19:43 +0200)] 
Merge pull request #530 from bartman/bart/mtr-braille-graph

mtr braille graph support

13 months agoSet UTF-8 encoding for XML reports 531/head
Marek Küthe [Sun, 13 Apr 2025 11:58:08 +0000 (11:58 +0000)] 
Set UTF-8 encoding for XML reports

13 months agofix documentation/comment for ENABLE_BRAILLE 530/head
Bart Trojanowski [Sat, 12 Apr 2025 16:36:37 +0000 (12:36 -0400)] 
fix documentation/comment for ENABLE_BRAILLE

13 months agofix legend for braille display
Bart Trojanowski [Wed, 9 Apr 2025 20:45:45 +0000 (16:45 -0400)] 
fix legend for braille display

13 months agoadd braille graph support with --displaymode 3
Bart Trojanowski [Tue, 8 Apr 2025 03:11:09 +0000 (23:11 -0400)] 
add braille graph support with --displaymode 3

15 months agoMerge pull request #527 from marek22k/fix-475
Roger Wolff [Mon, 17 Feb 2025 18:45:02 +0000 (19:45 +0100)] 
Merge pull request #527 from marek22k/fix-475

Fix https://github.com/traviscross/mtr/issues/475

15 months agoMerge pull request #528 from marek22k/fix-522-2
Roger Wolff [Sun, 16 Feb 2025 12:07:23 +0000 (13:07 +0100)] 
Merge pull request #528 from marek22k/fix-522-2

xml report: remove leading spaces

15 months agoxml report: remove leading spaces 528/head
Marek Küthe [Fri, 14 Feb 2025 23:14:24 +0000 (23:14 +0000)] 
xml report: remove leading spaces

15 months agoFix https://github.com/traviscross/mtr/issues/475 527/head
Marek Küthe [Sat, 15 Feb 2025 22:21:13 +0000 (22:21 +0000)] 
Fix https://github.com/traviscross/mtr/issues/475

With an input of `-28` the expression `(-ctl->cpacketsize - MINPACKET)` became 0, which triggered a zero division. This error is fixed by introducing a check to see if there is any room for randomness. Furthermore, a check of the input arguments in the command line and in curses is performed.

15 months agoMerge pull request #526 from marek22k/fix-523-2
Roger Wolff [Sat, 15 Feb 2025 21:53:45 +0000 (22:53 +0100)] 
Merge pull request #526 from marek22k/fix-523-2

Remove redundant code

15 months agoRemove redundant code 526/head
Marek Küthe [Sat, 15 Feb 2025 21:35:41 +0000 (21:35 +0000)] 
Remove redundant code

As @yvs2014 noted in https://github.com/traviscross/mtr/issues/523#issuecomment-2660970185, it is unnecessary to check whether an int is larger than the maximum int value. An int cannot be greater than the maximum int value.

15 months agoMerge pull request #525 from marek22k/fix-523
Roger Wolff [Sat, 15 Feb 2025 20:43:13 +0000 (21:43 +0100)] 
Merge pull request #525 from marek22k/fix-523

Fix 523

15 months agoSplit the strtonum function into two parts to create a better structure 525/head
Marek Küthe [Fri, 14 Feb 2025 23:31:18 +0000 (23:31 +0000)] 
Split the strtonum function into two parts to create a better structure

This even saves some memory when converting signed integers, as no `long` is used.

15 months agoAllow signed integers in the utils function
Marek Küthe [Fri, 14 Feb 2025 23:28:27 +0000 (23:28 +0000)] 
Allow signed integers in the utils function

Fix https://github.com/traviscross/mtr/issues/523

15 months agoChanged how conflicitng first/max TTL works.
R.E. Wolff [Wed, 5 Feb 2025 12:34:05 +0000 (13:34 +0100)] 
Changed how conflicitng first/max TTL works.

21 months agoMerge pull request #515 from msekletar/icmp-socket-leak
Roger Wolff [Tue, 27 Aug 2024 17:12:57 +0000 (19:12 +0200)] 
Merge pull request #515 from msekletar/icmp-socket-leak

Prevent icmp_socket leak on error

21 months agoPrevent icmp_socket leak on error 515/head
Michal Sekletar [Tue, 27 Aug 2024 15:59:15 +0000 (17:59 +0200)] 
Prevent icmp_socket leak on error

21 months agoMerge pull request #513 from arekm/master
Roger Wolff [Wed, 21 Aug 2024 11:16:32 +0000 (13:16 +0200)] 
Merge pull request #513 from arekm/master

Handle EHOSTDOWN and refine error handling better granularity

21 months agoHandle EHOSTDOWN and refine error handling better granularity 513/head
Arkadiusz Miśkiewicz [Wed, 21 Aug 2024 07:42:14 +0000 (09:42 +0200)] 
Handle EHOSTDOWN and refine error handling better granularity

21 months agoMerge pull request #512 from infrastation/fix_man_mtr
Roger Wolff [Thu, 15 Aug 2024 14:08:04 +0000 (16:08 +0200)] 
Merge pull request #512 from infrastation/fix_man_mtr

mtr.8.in: spell --mark argument type properly

21 months agomtr.8.in: spell --mark argument type properly 512/head
Denis Ovsienko [Thu, 15 Aug 2024 13:31:46 +0000 (14:31 +0100)] 
mtr.8.in: spell --mark argument type properly

[skip ci]

21 months agoMerge pull request #511 from verrens/compact-layout
Roger Wolff [Sat, 3 Aug 2024 16:57:28 +0000 (18:57 +0200)] 
Merge pull request #511 from verrens/compact-layout

Add a compact mode in curses

21 months agoMerge branch 'master' into compact-layout 511/head
verrens [Sat, 3 Aug 2024 16:29:29 +0000 (19:29 +0300)] 
Merge branch 'master' into compact-layout

21 months agoAdd a compact mode in curses
Denis Afonin [Sat, 3 Aug 2024 16:16:57 +0000 (19:16 +0300)] 
Add a compact mode in curses

22 months agoMerge pull request #509 from nuclearcat/tiny-typo
Roger Wolff [Mon, 8 Jul 2024 06:23:52 +0000 (08:23 +0200)] 
Merge pull request #509 from nuclearcat/tiny-typo

Fix tiny typo in target

22 months agoFix tiny typo in target 509/head
Denys Fedoryshchenko [Sun, 7 Jul 2024 22:00:46 +0000 (01:00 +0300)] 
Fix tiny typo in target

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
2 years agoMerge pull request #495 from matt-kimball/cygwin-async-pipe 504/head
Roger Wolff [Tue, 24 Oct 2023 07:22:58 +0000 (09:22 +0200)] 
Merge pull request #495 from matt-kimball/cygwin-async-pipe

Update Cygwin ICMP service thread for asynchronous pipes

2 years agoUpdate Cygwin ICMP service thread for asynchronous pipes 495/head
Matt Kimball [Tue, 24 Oct 2023 02:02:43 +0000 (03:02 +0100)] 
Update Cygwin ICMP service thread for asynchronous pipes

Recent versions of Cygwin implement pipe() using Windows' named
pipes, and put the read end of the pipe in FILE_PIPE_COMPLETE_OPERATION
mode, which doesn't allow overlapped I/O operations.

For the relevant commit in the Cygwin repository, see
9e4d308cd592fe383dec58ea6523c1b436888ef8

The solution here is to maintain a Windows event object which is
set only when any ICMP requests are pending.  We can do an alertable
wait on that event object, which will allow us to complete ICMP
requests.

Thanks to Adam Schultz for research into this issue and a first
attempt at a fix.

2 years agoMerge pull request #493 from slord399/master
Roger Wolff [Sat, 14 Oct 2023 21:00:54 +0000 (23:00 +0200)] 
Merge pull request #493 from slord399/master

Recommend WSL as a way to run MTR on Windows.