]>
git.ipfire.org Git - thirdparty/mtr.git/log
23hiro [Sun, 17 Jul 2022 11:49:44 +0000 (11:49 +0000)]
Merge branch 'traviscross:master' into master
Roger Wolff [Sat, 14 May 2022 16:15:49 +0000 (18:15 +0200)]
Merge pull request #430 from bewing/max_display_path
add --max-display-paths option
Brandon Ewing [Fri, 13 May 2022 16:18:38 +0000 (11:18 -0500)]
add --max-display-paths option
It is not unknown to have datacenters with over 8 ECMP paths between two
hops. Expand the maximum number of ECMP hosts stored in addrs to 128,
and add a new option to control the number to display, defaulting to the
old MAX_PATHS of 8
Roger Wolff [Sat, 14 May 2022 10:06:06 +0000 (12:06 +0200)]
Merge pull request #429 from bewing/ecmp_order
use addrs for static host ordering in curses
Brandon Ewing [Fri, 13 May 2022 15:27:55 +0000 (10:27 -0500)]
use addrs for static host ordering in curses
Change
d2552ca has the side effect of moving hosts around in the
multipath view, as the last host to reply to a packet was set as
addr. Using addrs[0] istead of addr to draw the first host keeps
the ordering deterministic, in order of first reply.
R.E. Wolff [Tue, 11 Jan 2022 09:10:34 +0000 (10:10 +0100)]
The release script bumped the version number to 95
R.E. Wolff [Wed, 22 Dec 2021 22:58:23 +0000 (23:58 +0100)]
increased max length suggested by YVS2014
Roger Wolff [Tue, 14 Dec 2021 07:16:03 +0000 (08:16 +0100)]
Merge pull request #416 from gmax0/master
Report secondary servers when CSV + wide report is enabled
gaamox@tutanota.com [Tue, 14 Dec 2021 06:34:22 +0000 (22:34 -0800)]
Report secondary servers when CSV + wide report is enabled
hiro [Tue, 9 Nov 2021 17:50:12 +0000 (17:50 +0000)]
ipv6 udp checksums like ipv4 but with ipv6 pseudoheader
this fixes a problem where both source and destination port are supplied on the commandline,
this lead to packets not showing up any more due to checksum being different.
this was mentioned first on https://github.com/traviscross/mtr/issues/351
Roger Wolff [Mon, 1 Nov 2021 07:50:49 +0000 (08:50 +0100)]
Merge pull request #411 from trofi/master
ui/curses: always use "%s"-style format for printf()-style functions
Sergei Trofimovich [Mon, 1 Nov 2021 07:36:06 +0000 (07:36 +0000)]
ui/curses: always use "%s"-style format for printf()-style functions
`ncuses-6.3` added printf-style function attributes and now makes
it easier to catch cases when user input is used in palce of format
string when built with CFLAGS=-Werror=format-security:
ui/curses.c:765:42:
error: format not a string literal and no format arguments [-Werror=format-security]
765 | mvprintw(rowstat - 1, startstat, msg);
| ^~~
Let's wrap all the missing places with "%s" format.
Roger Wolff [Sun, 5 Sep 2021 15:51:16 +0000 (17:51 +0200)]
Merge pull request #407 from
a1346054 /fixes
Minor cleanup
a1346054 [Sun, 5 Sep 2021 13:17:33 +0000 (13:17 +0000)]
trim trailing whitespace
a1346054 [Sun, 5 Sep 2021 13:18:53 +0000 (13:18 +0000)]
fix spelling
a1346054 [Sun, 5 Sep 2021 13:50:56 +0000 (13:50 +0000)]
unify codestyle
a1346054 [Sun, 5 Sep 2021 13:12:42 +0000 (13:12 +0000)]
fix shellcheck warnings
a1346054 [Sun, 5 Sep 2021 13:10:51 +0000 (13:10 +0000)]
fix wrong bash completion flag
Roger Wolff [Sat, 17 Apr 2021 06:39:18 +0000 (08:39 +0200)]
Merge pull request #399 from krisl/bits_and_pieces
dont show json option if not available
Aaron Lipinski [Fri, 16 Apr 2021 20:36:55 +0000 (08:36 +1200)]
dont show json option if not available
Roger Wolff [Fri, 9 Apr 2021 06:55:46 +0000 (08:55 +0200)]
Merge pull request #397 from rpaaron/consistent_resolution_strategy
Consistent resolution strategy
Aaron Lipinski [Wed, 7 Apr 2021 20:14:00 +0000 (08:14 +1200)]
rename function
Aaron Lipinski [Wed, 7 Apr 2021 01:15:05 +0000 (13:15 +1200)]
make Hostname as const
Aaron Lipinski [Wed, 7 Apr 2021 01:11:55 +0000 (13:11 +1200)]
export get_hostent_from_name
Aaron Lipinski [Wed, 7 Apr 2021 01:08:36 +0000 (13:08 +1200)]
freeaddrinfo
Aaron Lipinski [Tue, 6 Apr 2021 04:57:59 +0000 (16:57 +1200)]
reset addr family before searching again
Aaron Lipinski [Wed, 7 Apr 2021 19:46:26 +0000 (07:46 +1200)]
export DEFAULT_AF
Aaron Lipinski [Tue, 6 Apr 2021 04:52:18 +0000 (16:52 +1200)]
switch gui to addrinfo
Aaron Lipinski [Tue, 6 Apr 2021 04:12:36 +0000 (16:12 +1200)]
remove conversion function
Aaron Lipinski [Tue, 6 Apr 2021 04:00:41 +0000 (16:00 +1200)]
use addrinfo
Aaron Lipinski [Tue, 6 Apr 2021 03:39:57 +0000 (15:39 +1200)]
move conversion call to caller
Aaron Lipinski [Tue, 6 Apr 2021 03:09:29 +0000 (15:09 +1200)]
extract convert_addrinfo_to_hostent function
Aaron Lipinski [Tue, 6 Apr 2021 01:49:08 +0000 (13:49 +1200)]
remove temporaries
Aaron Lipinski [Tue, 6 Apr 2021 01:25:10 +0000 (13:25 +1200)]
prepare host with h_addr_list
Aaron Lipinski [Tue, 6 Apr 2021 01:23:14 +0000 (13:23 +1200)]
init structures correctly wired up
Aaron Lipinski [Tue, 6 Apr 2021 00:25:12 +0000 (12:25 +1200)]
remove wrapper only function
Aaron Lipinski [Sun, 4 Apr 2021 01:02:54 +0000 (13:02 +1200)]
resolve ipv6 only if we have ipv6
Aaron Lipinski [Sun, 4 Apr 2021 00:16:26 +0000 (12:16 +1200)]
tell dns process if we want 4 or 6
Roger Wolff [Tue, 6 Apr 2021 08:48:57 +0000 (10:48 +0200)]
Merge pull request #395 from krisl/reset_address_family
Reset address family
Aaron Lipinski [Sat, 3 Apr 2021 22:19:29 +0000 (10:19 +1200)]
accept only value used in structure
Aaron Lipinski [Sat, 3 Apr 2021 22:14:52 +0000 (10:14 +1200)]
accept only value used in structure
Aaron Lipinski [Sat, 3 Apr 2021 22:08:00 +0000 (10:08 +1200)]
accept only value used in structure
Aaron Lipinski [Sat, 3 Apr 2021 20:02:38 +0000 (08:02 +1200)]
reset ctl address family at net_reopen
Roger Wolff [Sat, 3 Apr 2021 08:47:34 +0000 (10:47 +0200)]
Merge pull request #393 from rpaaron/fix_changing_source
Fix changing source
R.E. Wolff [Sat, 3 Apr 2021 08:25:41 +0000 (10:25 +0200)]
Slight cleanup, but no fix for code that came up in a bugreport.
Aaron Lipinski [Sat, 3 Apr 2021 02:34:31 +0000 (15:34 +1300)]
refactor - group local, remote inits
Aaron Lipinski [Sat, 3 Apr 2021 02:25:09 +0000 (15:25 +1300)]
additional call from net_reopen
Aaron Lipinski [Sat, 3 Apr 2021 02:07:17 +0000 (15:07 +1300)]
re-init source too
Aaron Lipinski [Sat, 3 Apr 2021 02:05:01 +0000 (15:05 +1300)]
addr -> hostent for consistency
Aaron Lipinski [Sat, 3 Apr 2021 02:00:45 +0000 (15:00 +1300)]
move net_send_batch call to its caller
Roger Wolff [Wed, 10 Mar 2021 12:51:44 +0000 (13:51 +0100)]
Merge pull request #391 from vincentbernat/fix/mpls-report
report: fix display of MPLS labels when using --report
Roger Wolff [Wed, 10 Mar 2021 12:50:59 +0000 (13:50 +0100)]
Merge pull request #390 from vincentbernat/fix/mpls-display
net: fix MPLS display for curses and report
Vincent Bernat [Tue, 9 Mar 2021 22:15:13 +0000 (23:15 +0100)]
report: fix display of MPLS labels when using --report
Previously, using --report --mpls would not display MPLS labels unless
combined with --aslookup or -y. Fix this case.
```
23:03 ❱ ./mtr -z --report-wide -e 203.0.113.10
Start: 2021-03-09T23:03:43+0100
HOST: H1 Loss% Snt Last Avg Best Wrst StDev
1. AS??? 192.0.2.1 0.0% 10 1.0 1.1 0.8 1.8 0.3
2. AS??? 169.254.0.2 0.0% 10 2.5 2.5 2.4 2.8 0.1
[MPLS: Lbl 299776 TC 0 S u TTL 1]
[MPLS: Lbl 16 TC 0 S u TTL 1]
3. AS??? 203.0.113.1 0.0% 10 2.2 2.7 2.1 4.8 1.1
4. AS??? 203.0.113.10 0.0% 10 2.3 2.3 2.2 2.6 0.1
23:04 ❱ ./mtr --report-wide -e 203.0.113.10
Start: 2021-03-09T23:04:07+0100
HOST: H1 Loss% Snt Last Avg Best Wrst StDev
1.|-- 192.0.2.1 0.0% 10 0.8 2.9 0.7 20.9 6.3
2.|-- 169.254.0.2 0.0% 10 2.8 2.7 2.4 2.8 0.1
[MPLS: Lbl 299776 TC 0 S u TTL 1]
[MPLS: Lbl 16 TC 0 S u TTL 1]
3.|-- 203.0.113.1 0.0% 10 16.1 3.7 2.0 16.1 4.4
4.|-- 203.0.113.10 0.0% 10 3.5 2.5 2.2 3.5 0.4
```
This is not really elegant and I didn't try to display with vertical
bars like it should be done when no additional IP info is requested,
but the code already has many branches with very similar code and I
didn't want to add even more complexity to it.
Fix #341
Vincent Bernat [Tue, 9 Mar 2021 21:46:47 +0000 (22:46 +0100)]
net: fix MPLS display for curses and report
After #364, MPLS labels were not displayed anymore due to a logic
invertion. Previously, the addr/mpls fields were populated first and
addrs[i]/mplss[i] copied from these values. After the patch, the
reverse is happening but populating addrs[i] and mpls[i] was still
done by copying the value from addr/mpls. This was not a problem for
displaying addresses as addr was used however for mpls labels, this is
mplss which is used exclusively (net_mpls() is not using mpls field,
but mplss field).
After #364, hosts position is changing depending on the most recent
paths. I didn't fix that as it may be seen as a feature but this can
be a bit disturbing.
Also, unrelated, but the unnecessary/unsafe casts to void pointer are
removed for net_addr(), net_addrs(), net_mpls() and net_mplss(). Also,
net_mpls() is using mpls field instead of mplss as this seems more
correct.
This has been tested with curses and report. Also, raw is still
working.
Fix #370.
Roger Wolff [Mon, 8 Mar 2021 08:26:54 +0000 (09:26 +0100)]
Merge pull request #389 from vincentbernat/fix/avoid-void-casting
ui: don't cast to void* when calling display_rawhost()
Vincent Bernat [Mon, 8 Mar 2021 07:29:53 +0000 (08:29 +0100)]
ui: don't cast to void* when calling display_rawhost()
The provided types are compatible with the function signature.
Moreover, this seems to hide a bug where `display_rawhost()` is called
with an address instead of an MPLS struct.
Roger Wolff [Fri, 30 Oct 2020 14:56:43 +0000 (15:56 +0100)]
Merge pull request #376 from epanoff/fix-readme
Updated Readme for windows: added libjansson
Egor Panov [Fri, 30 Oct 2020 14:34:57 +0000 (17:34 +0300)]
Updated Readme
added libjansson-devel for building on win
Rogier Wolff [Sun, 18 Oct 2020 07:54:45 +0000 (09:54 +0200)]
added clarification to readme suggested by Zenithal
Rogier Wolff [Sun, 18 Oct 2020 07:48:46 +0000 (09:48 +0200)]
Code formatting for Zenithal pull
Roger Wolff [Sun, 18 Oct 2020 07:45:28 +0000 (09:45 +0200)]
Merge pull request #373 from ZenithalHourlyRate/master
Add display of destination with resolved addr under curses mode
Zenithal [Sat, 17 Oct 2020 15:03:51 +0000 (23:03 +0800)]
Add display of destination with resolved addr under curses mode
R.E. Wolff [Thu, 24 Sep 2020 08:26:14 +0000 (10:26 +0200)]
The release script bumped the version number to 94
R.E. Wolff [Thu, 24 Sep 2020 08:09:53 +0000 (10:09 +0200)]
The release script bumped the version number to 94
R.E. Wolff [Wed, 23 Sep 2020 15:28:49 +0000 (17:28 +0200)]
Changed MAXPATH to MAX_PATH for AIX compatibility. -- aixtools
R.E. Wolff [Mon, 21 Sep 2020 20:35:58 +0000 (22:35 +0200)]
Added extra help text to configure --yvs
Roger Wolff [Mon, 31 Aug 2020 07:11:51 +0000 (09:11 +0200)]
Merge pull request #364 from atibdialpad/custom-mtr
Code to allow maxTTL to change dynamically when path changes in the middle of mtr execution
atibdialpad [Mon, 31 Aug 2020 03:55:47 +0000 (09:25 +0530)]
TODO list changes
atibdialpad [Sun, 23 Aug 2020 15:11:27 +0000 (20:41 +0530)]
Change TTL dynamically to adjust for path changes
Roger Wolff [Sat, 8 Aug 2020 11:16:06 +0000 (13:16 +0200)]
Merge pull request #362 from atib92/mtr-109
Added code to print multiple addresses regitered on the same hop count
atib [Sat, 8 Aug 2020 09:12:05 +0000 (14:42 +0530)]
Added code to print multiple addresses regitered on the same hop count
Roger Wolff [Fri, 10 Jul 2020 04:30:28 +0000 (06:30 +0200)]
Merge pull request #355 from ltWolfik/jansson
report: json: reworked with libjansson
Kulemin Alexander [Thu, 9 Jul 2020 16:40:57 +0000 (19:40 +0300)]
report: json: reworked with libjansson
Roger Wolff [Sat, 4 Jul 2020 06:24:39 +0000 (08:24 +0200)]
Merge pull request #354 from bluPhy/master
Updating some coments (SIC) :-)
Alejandro Leal [Fri, 3 Jul 2020 18:53:28 +0000 (14:53 -0400)]
Updating some comments
Roger Wolff [Thu, 18 Jun 2020 05:52:23 +0000 (07:52 +0200)]
Merge pull request #352 from bluPhy/master
few updates to manual page and README.md
Alejandro Leal [Wed, 17 Jun 2020 21:05:21 +0000 (17:05 -0400)]
few updates to manual page and README.md
Roger Wolff [Thu, 7 May 2020 16:02:56 +0000 (18:02 +0200)]
Merge pull request #345 from markeganfuller/display_target
Add display of destination.
Mark Egan-Fuller [Thu, 7 May 2020 15:34:02 +0000 (16:34 +0100)]
Add display of destination.
Roger Wolff [Wed, 25 Mar 2020 09:48:34 +0000 (10:48 +0100)]
Merge pull request #340 from Sea-n/master
Fix parameter in ui/net.c
Sean Wei [Wed, 25 Mar 2020 03:24:21 +0000 (11:24 +0800)]
Fix parameter in ui/net.c
The 'net_send_query' function was use global varible 'packetsize'
and ignoring 'packet_size' parameter.
Roger Wolff [Sun, 16 Feb 2020 16:10:51 +0000 (17:10 +0100)]
Merge pull request #336 from ym/master
show mpls information in raw output
Siyuan Miao [Sun, 16 Feb 2020 01:19:22 +0000 (09:19 +0800)]
show mpls information in raw output
R.E. Wolff [Thu, 13 Feb 2020 08:20:12 +0000 (09:20 +0100)]
More compilation warning fixes from obouizi
R.E. Wolff [Wed, 12 Feb 2020 11:19:31 +0000 (12:19 +0100)]
Merge branch 'master' of github.com:traviscross/mtr
R.E. Wolff [Wed, 12 Feb 2020 11:19:19 +0000 (12:19 +0100)]
Added include errno --obouizi
Roger Wolff [Wed, 15 Jan 2020 15:03:58 +0000 (16:03 +0100)]
Merge pull request #331 from commonism/ip6udp
ip6 udp - fix probes with local or remote port
Markus Kötter [Wed, 15 Jan 2020 14:42:58 +0000 (15:42 +0100)]
ip6 udp - fix probes with local or remote port
only set the remote port in raw packet, not as sendto parameter
does not fix local and remote port, seq number is checksum then,
payload has to be adjusted as with ipv4
R.E. Wolff [Mon, 6 Jan 2020 12:16:01 +0000 (13:16 +0100)]
fix closing brace
R.E. Wolff [Mon, 6 Jan 2020 11:21:22 +0000 (12:21 +0100)]
proposed patch for bsd compile error
R.E. Wolff [Tue, 31 Dec 2019 10:54:01 +0000 (11:54 +0100)]
net find local address fix by meingtsla
Roger Wolff [Fri, 6 Dec 2019 09:16:53 +0000 (10:16 +0100)]
Merge pull request #325 from kbucheli/tun_interface_segfault
fix segmentation fault if there is no IP address on an interface (fixes #320)
Konrad Bucheli [Fri, 6 Dec 2019 09:06:38 +0000 (10:06 +0100)]
fix segmentation fault if there is no IP address on an interface (fixes #320)
Roger Wolff [Thu, 10 Oct 2019 09:54:15 +0000 (11:54 +0200)]
Merge pull request #322 from commonism/cleanups
sockaddr related cleanups
Markus Kötter [Wed, 14 Aug 2019 11:43:53 +0000 (13:43 +0200)]
simplification - improve readability
Markus Kötter [Wed, 14 Aug 2019 11:41:41 +0000 (13:41 +0200)]
simplification - address addrcmp
Roger Wolff [Sat, 10 Aug 2019 00:23:20 +0000 (02:23 +0200)]
Merge pull request #319 from krisl/fix/stack_use_after_scope
Fix/stack use after scope
Aaron Lipinski [Fri, 9 Aug 2019 20:52:53 +0000 (08:52 +1200)]
avoid stack use after scope
Aaron Lipinski [Fri, 9 Aug 2019 20:13:16 +0000 (08:13 +1200)]
introduce libasan
Roger Wolff [Fri, 9 Aug 2019 08:14:27 +0000 (10:14 +0200)]
Merge pull request #310 from krisl/fix/raw_dns
Fix/raw dns