]> git.ipfire.org Git - thirdparty/mtr.git/log
thirdparty/mtr.git
3 weeks agooptions: accept target ports in host arguments 621/head
Darafei Praliaskouski [Fri, 8 May 2026 12:38:23 +0000 (16:38 +0400)] 
options: accept target ports in host arguments

3 weeks agoMerge pull request #577 from Komzpa/darafei/parse-quoted-mtr-options
Roger Wolff [Fri, 8 May 2026 12:24:48 +0000 (14:24 +0200)] 
Merge pull request #577 from Komzpa/darafei/parse-quoted-mtr-options

options: parse quoted MTR_OPTIONS arguments

3 weeks agoMerge pull request #581 from Komzpa/darafei/rename-udp-checksum-helper
Roger Wolff [Fri, 8 May 2026 12:23:59 +0000 (14:23 +0200)] 
Merge pull request #581 from Komzpa/darafei/rename-udp-checksum-helper

packet: rename shared UDP checksum helper

3 weeks agoMerge pull request #586 from Komzpa/darafei/preflight-report-targets
Roger Wolff [Fri, 8 May 2026 12:23:15 +0000 (14:23 +0200)] 
Merge pull request #586 from Komzpa/darafei/preflight-report-targets

report: preflight multiple target families

3 weeks agoMerge pull request #587 from Komzpa/darafei/document-stripchart-markers
Roger Wolff [Fri, 8 May 2026 12:21:45 +0000 (14:21 +0200)] 
Merge pull request #587 from Komzpa/darafei/document-stripchart-markers

docs: explain stripchart markers

3 weeks agoMerge pull request #582 from Komzpa/darafei/test-ttl-option-validation
Roger Wolff [Fri, 8 May 2026 12:21:13 +0000 (14:21 +0200)] 
Merge pull request #582 from Komzpa/darafei/test-ttl-option-validation

test: cover TTL option validation

3 weeks agoMerge pull request #591 from Komzpa/darafei/document-raw-time-units
Roger Wolff [Fri, 8 May 2026 12:20:16 +0000 (14:20 +0200)] 
Merge pull request #591 from Komzpa/darafei/document-raw-time-units

docs: clarify raw ping time units

3 weeks agoMerge pull request #590 from Komzpa/darafei/add-appstream-metadata
Roger Wolff [Fri, 8 May 2026 12:19:21 +0000 (14:19 +0200)] 
Merge pull request #590 from Komzpa/darafei/add-appstream-metadata

desktop: install AppStream metadata

3 weeks agoMerge pull request #589 from Komzpa/darafei/report-on-interrupt
Roger Wolff [Fri, 8 May 2026 12:18:35 +0000 (14:18 +0200)] 
Merge pull request #589 from Komzpa/darafei/report-on-interrupt

report: print partial output on interrupt

3 weeks agoMerge pull request #593 from Komzpa/darafei/static-analysis-fixes
Roger Wolff [Fri, 8 May 2026 12:17:10 +0000 (14:17 +0200)] 
Merge pull request #593 from Komzpa/darafei/static-analysis-fixes

fix: address static analyzer findings

3 weeks agoMerge pull request #592 from Komzpa/darafei/xml-host-address-attrs
Roger Wolff [Fri, 8 May 2026 12:12:54 +0000 (14:12 +0200)] 
Merge pull request #592 from Komzpa/darafei/xml-host-address-attrs

xml: expose hub host address separately

3 weeks agoMerge pull request #595 from Komzpa/darafei/gcc-analyzer-fixes
Roger Wolff [Fri, 8 May 2026 12:10:47 +0000 (14:10 +0200)] 
Merge pull request #595 from Komzpa/darafei/gcc-analyzer-fixes

fix(mpls): print stack flag without suffix

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 agodesktop: install AppStream metadata 590/head
Darafei Praliaskouski [Thu, 7 May 2026 20:45:48 +0000 (00:45 +0400)] 
desktop: install AppStream metadata

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 agoreport: print partial output on interrupt 589/head
Darafei Praliaskouski [Thu, 7 May 2026 20:41:00 +0000 (00:41 +0400)] 
report: print partial output on interrupt

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 agofix(mpls): print stack flag without suffix 595/head
Darafei Praliaskouski [Thu, 7 May 2026 21:12:35 +0000 (01:12 +0400)] 
fix(mpls): print stack flag without suffix

3 weeks agofix: address static analyzer findings 593/head
Darafei Praliaskouski [Thu, 7 May 2026 21:05:58 +0000 (01:05 +0400)] 
fix: address static analyzer findings

3 weeks agoxml: expose hub host address separately 592/head
Darafei Praliaskouski [Thu, 7 May 2026 20:53:29 +0000 (00:53 +0400)] 
xml: expose hub host address separately

3 weeks agodocs: clarify raw ping time units 591/head
Darafei Praliaskouski [Thu, 7 May 2026 20:50:53 +0000 (00:50 +0400)] 
docs: clarify raw ping time units

3 weeks agodocs: explain stripchart markers 587/head
Darafei Praliaskouski [Thu, 7 May 2026 20:31:20 +0000 (00:31 +0400)] 
docs: explain stripchart markers

3 weeks agoreport: preflight multiple target families 586/head
Darafei Praliaskouski [Thu, 7 May 2026 20:29:31 +0000 (00:29 +0400)] 
report: preflight multiple target families

3 weeks agotest: cover TTL option validation 582/head
Darafei Praliaskouski [Thu, 7 May 2026 20:08:46 +0000 (00:08 +0400)] 
test: cover TTL option validation

3 weeks agopacket: rename shared UDP checksum helper 581/head
flu0r1ne [Thu, 7 May 2026 20:03:48 +0000 (00:03 +0400)] 
packet: rename shared UDP checksum helper

3 weeks agooptions: parse quoted MTR_OPTIONS arguments 577/head
Darafei Praliaskouski [Thu, 7 May 2026 19:56:38 +0000 (23:56 +0400)] 
options: parse quoted MTR_OPTIONS arguments

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