]> git.ipfire.org Git - thirdparty/mtr.git/log
thirdparty/mtr.git
4 years agodont show json option if not available 399/head
Aaron Lipinski [Fri, 16 Apr 2021 20:36:55 +0000 (08:36 +1200)] 
dont show json option if not available

4 years agoMerge pull request #397 from rpaaron/consistent_resolution_strategy
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

4 years agorename function 397/head
Aaron Lipinski [Wed, 7 Apr 2021 20:14:00 +0000 (08:14 +1200)] 
rename function

4 years agomake Hostname as const
Aaron Lipinski [Wed, 7 Apr 2021 01:15:05 +0000 (13:15 +1200)] 
make Hostname as const

4 years agoexport get_hostent_from_name
Aaron Lipinski [Wed, 7 Apr 2021 01:11:55 +0000 (13:11 +1200)] 
export get_hostent_from_name

4 years agofreeaddrinfo
Aaron Lipinski [Wed, 7 Apr 2021 01:08:36 +0000 (13:08 +1200)] 
freeaddrinfo

4 years agoreset addr family before searching again
Aaron Lipinski [Tue, 6 Apr 2021 04:57:59 +0000 (16:57 +1200)] 
reset addr family before searching again

4 years agoexport DEFAULT_AF
Aaron Lipinski [Wed, 7 Apr 2021 19:46:26 +0000 (07:46 +1200)] 
export DEFAULT_AF

4 years agoswitch gui to addrinfo
Aaron Lipinski [Tue, 6 Apr 2021 04:52:18 +0000 (16:52 +1200)] 
switch gui to addrinfo

4 years agoremove conversion function
Aaron Lipinski [Tue, 6 Apr 2021 04:12:36 +0000 (16:12 +1200)] 
remove conversion function

4 years agouse addrinfo
Aaron Lipinski [Tue, 6 Apr 2021 04:00:41 +0000 (16:00 +1200)] 
use addrinfo

4 years agomove conversion call to caller
Aaron Lipinski [Tue, 6 Apr 2021 03:39:57 +0000 (15:39 +1200)] 
move conversion call to caller

4 years agoextract convert_addrinfo_to_hostent function
Aaron Lipinski [Tue, 6 Apr 2021 03:09:29 +0000 (15:09 +1200)] 
extract convert_addrinfo_to_hostent function

4 years agoremove temporaries
Aaron Lipinski [Tue, 6 Apr 2021 01:49:08 +0000 (13:49 +1200)] 
remove temporaries

4 years agoprepare host with h_addr_list
Aaron Lipinski [Tue, 6 Apr 2021 01:25:10 +0000 (13:25 +1200)] 
prepare host with h_addr_list

4 years agoinit structures correctly wired up
Aaron Lipinski [Tue, 6 Apr 2021 01:23:14 +0000 (13:23 +1200)] 
init structures correctly wired up

4 years agoremove wrapper only function
Aaron Lipinski [Tue, 6 Apr 2021 00:25:12 +0000 (12:25 +1200)] 
remove wrapper only function

4 years agoresolve ipv6 only if we have ipv6
Aaron Lipinski [Sun, 4 Apr 2021 01:02:54 +0000 (13:02 +1200)] 
resolve ipv6 only if we have ipv6

4 years agotell dns process if we want 4 or 6 394/head
Aaron Lipinski [Sun, 4 Apr 2021 00:16:26 +0000 (12:16 +1200)] 
tell dns process if we want 4 or 6

4 years agoMerge pull request #395 from krisl/reset_address_family
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

4 years agoaccept only value used in structure 395/head
Aaron Lipinski [Sat, 3 Apr 2021 22:19:29 +0000 (10:19 +1200)] 
accept only value used in structure

4 years agoaccept only value used in structure
Aaron Lipinski [Sat, 3 Apr 2021 22:14:52 +0000 (10:14 +1200)] 
accept only value used in structure

4 years agoaccept only value used in structure
Aaron Lipinski [Sat, 3 Apr 2021 22:08:00 +0000 (10:08 +1200)] 
accept only value used in structure

4 years agoreset ctl address family at net_reopen
Aaron Lipinski [Sat, 3 Apr 2021 20:02:38 +0000 (08:02 +1200)] 
reset ctl address family at net_reopen

4 years agoMerge pull request #393 from rpaaron/fix_changing_source
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

4 years agoSlight cleanup, but no fix for code that came up in a bugreport.
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.

4 years agorefactor - group local, remote inits 393/head
Aaron Lipinski [Sat, 3 Apr 2021 02:34:31 +0000 (15:34 +1300)] 
refactor - group local, remote inits

4 years agoadditional call from net_reopen
Aaron Lipinski [Sat, 3 Apr 2021 02:25:09 +0000 (15:25 +1300)] 
additional call from net_reopen

4 years agore-init source too
Aaron Lipinski [Sat, 3 Apr 2021 02:07:17 +0000 (15:07 +1300)] 
re-init source too

4 years agoaddr -> hostent for consistency
Aaron Lipinski [Sat, 3 Apr 2021 02:05:01 +0000 (15:05 +1300)] 
addr -> hostent for consistency

4 years agomove net_send_batch call to its caller
Aaron Lipinski [Sat, 3 Apr 2021 02:00:45 +0000 (15:00 +1300)] 
move net_send_batch call to its caller

4 years agoMerge pull request #391 from vincentbernat/fix/mpls-report
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

4 years agoMerge pull request #390 from vincentbernat/fix/mpls-display
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

4 years agoreport: fix display of MPLS labels when using --report 391/head
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

4 years agonet: fix MPLS display for curses and report 390/head
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.

4 years agoMerge pull request #389 from vincentbernat/fix/avoid-void-casting
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()

4 years agoui: don't cast to void* when calling display_rawhost() 389/head
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.

4 years agoMerge pull request #376 from epanoff/fix-readme
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

4 years agoUpdated Readme 376/head
Egor Panov [Fri, 30 Oct 2020 14:34:57 +0000 (17:34 +0300)] 
Updated Readme

added libjansson-devel for building on win

4 years agoadded clarification to readme suggested by Zenithal
Rogier Wolff [Sun, 18 Oct 2020 07:54:45 +0000 (09:54 +0200)] 
added clarification to readme suggested by Zenithal

4 years agoCode formatting for Zenithal pull
Rogier Wolff [Sun, 18 Oct 2020 07:48:46 +0000 (09:48 +0200)] 
Code formatting for Zenithal pull

4 years agoMerge pull request #373 from ZenithalHourlyRate/master
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

4 years agoAdd display of destination with resolved addr under curses mode 373/head
Zenithal [Sat, 17 Oct 2020 15:03:51 +0000 (23:03 +0800)] 
Add display of destination with resolved addr under curses mode

4 years agoThe release script bumped the version number to 94 v0.94
R.E. Wolff [Thu, 24 Sep 2020 08:26:14 +0000 (10:26 +0200)] 
The release script bumped the version number to 94

4 years agoThe 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

4 years agoChanged MAXPATH to MAX_PATH for AIX compatibility. -- aixtools
R.E. Wolff [Wed, 23 Sep 2020 15:28:49 +0000 (17:28 +0200)] 
Changed MAXPATH to MAX_PATH for AIX compatibility. -- aixtools

4 years agoAdded extra help text to configure --yvs
R.E. Wolff [Mon, 21 Sep 2020 20:35:58 +0000 (22:35 +0200)] 
Added extra help text to configure --yvs

4 years agoMerge pull request #364 from atibdialpad/custom-mtr
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

4 years agoTODO list changes 364/head
atibdialpad [Mon, 31 Aug 2020 03:55:47 +0000 (09:25 +0530)] 
TODO list changes

4 years agoChange TTL dynamically to adjust for path changes
atibdialpad [Sun, 23 Aug 2020 15:11:27 +0000 (20:41 +0530)] 
Change TTL dynamically to adjust for path changes

4 years agoMerge pull request #362 from atib92/mtr-109
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

4 years agoAdded code to print multiple addresses regitered on the same hop count 362/head
atib [Sat, 8 Aug 2020 09:12:05 +0000 (14:42 +0530)] 
Added code to print multiple addresses regitered on the same hop count

5 years agoMerge pull request #355 from ltWolfik/jansson
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

5 years agoreport: json: reworked with libjansson 355/head
Kulemin Alexander [Thu, 9 Jul 2020 16:40:57 +0000 (19:40 +0300)] 
report: json: reworked with libjansson

5 years agoMerge pull request #354 from bluPhy/master
Roger Wolff [Sat, 4 Jul 2020 06:24:39 +0000 (08:24 +0200)] 
Merge pull request #354 from bluPhy/master

Updating some coments (SIC) :-)

5 years agoUpdating some comments 354/head
Alejandro Leal [Fri, 3 Jul 2020 18:53:28 +0000 (14:53 -0400)] 
Updating some comments

5 years agoMerge pull request #352 from bluPhy/master
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

5 years agofew updates to manual page and README.md 352/head
Alejandro Leal [Wed, 17 Jun 2020 21:05:21 +0000 (17:05 -0400)] 
few updates to manual page and README.md

5 years agoMerge pull request #345 from markeganfuller/display_target
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.

5 years agoAdd display of destination. 345/head
Mark Egan-Fuller [Thu, 7 May 2020 15:34:02 +0000 (16:34 +0100)] 
Add display of destination.

5 years agoMerge pull request #340 from Sea-n/master
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

5 years agoFix parameter in ui/net.c 340/head
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.

5 years agoMerge pull request #336 from ym/master
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

5 years agoshow mpls information in raw output 336/head
Siyuan Miao [Sun, 16 Feb 2020 01:19:22 +0000 (09:19 +0800)] 
show mpls information in raw output

5 years agoMore compilation warning fixes from obouizi
R.E. Wolff [Thu, 13 Feb 2020 08:20:12 +0000 (09:20 +0100)] 
More compilation warning fixes from obouizi

5 years agoMerge branch 'master' of github.com:traviscross/mtr
R.E. Wolff [Wed, 12 Feb 2020 11:19:31 +0000 (12:19 +0100)] 
Merge branch 'master' of github.com:traviscross/mtr

5 years agoAdded include errno --obouizi
R.E. Wolff [Wed, 12 Feb 2020 11:19:19 +0000 (12:19 +0100)] 
Added include errno --obouizi

5 years agoMerge pull request #331 from commonism/ip6udp
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

5 years agoip6 udp - fix probes with local or remote port 331/head
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

5 years agofix closing brace testbsderr
R.E. Wolff [Mon, 6 Jan 2020 12:16:01 +0000 (13:16 +0100)] 
fix closing brace

5 years agoproposed patch for bsd compile error
R.E. Wolff [Mon, 6 Jan 2020 11:21:22 +0000 (12:21 +0100)] 
proposed patch for bsd compile error

5 years agonet find local address fix by meingtsla
R.E. Wolff [Tue, 31 Dec 2019 10:54:01 +0000 (11:54 +0100)] 
net find local address fix by meingtsla

5 years agoMerge pull request #325 from kbucheli/tun_interface_segfault
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)

5 years agofix segmentation fault if there is no IP address on an interface (fixes #320) 325/head
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)

5 years agoMerge pull request #322 from commonism/cleanups
Roger Wolff [Thu, 10 Oct 2019 09:54:15 +0000 (11:54 +0200)] 
Merge pull request #322 from commonism/cleanups

sockaddr related cleanups

5 years agosimplification - improve readability 322/head
Markus Kötter [Wed, 14 Aug 2019 11:43:53 +0000 (13:43 +0200)] 
simplification - improve readability

5 years agosimplification - address addrcmp
Markus Kötter [Wed, 14 Aug 2019 11:41:41 +0000 (13:41 +0200)] 
simplification - address addrcmp

5 years agoMerge pull request #319 from krisl/fix/stack_use_after_scope
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

5 years agoavoid stack use after scope 319/head
Aaron Lipinski [Fri, 9 Aug 2019 20:52:53 +0000 (08:52 +1200)] 
avoid stack use after scope

5 years agointroduce libasan
Aaron Lipinski [Fri, 9 Aug 2019 20:13:16 +0000 (08:13 +1200)] 
introduce libasan

5 years agoMerge pull request #310 from krisl/fix/raw_dns
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

5 years agoin hindsight my previous patch wasn't so nice. And nobody told me.
Rogier Wolff [Fri, 9 Aug 2019 06:59:39 +0000 (08:59 +0200)] 
in hindsight my previous patch wasn't so nice. And nobody told me.

5 years agosimplification - remove rsa{4,6}
Markus Kötter [Thu, 8 Aug 2019 10:18:58 +0000 (12:18 +0200)] 
simplification - remove rsa{4,6}

5 years agosimplification - remove addrcpy
Markus Kötter [Thu, 8 Aug 2019 09:50:11 +0000 (11:50 +0200)] 
simplification - remove addrcpy

5 years agorely on final return NULL 310/head
Aaron Lipinski [Sun, 28 Jul 2019 20:08:51 +0000 (08:08 +1200)] 
rely on final return NULL

5 years agoshow resolved hostname in raw dnsline
Aaron Lipinski [Sun, 28 Jul 2019 10:35:39 +0000 (22:35 +1200)] 
show resolved hostname in raw dnsline

5 years agoMerge branch 'master' of github.com:traviscross/mtr
Rogier Wolff [Thu, 8 Aug 2019 09:23:29 +0000 (11:23 +0200)] 
Merge branch 'master' of github.com:traviscross/mtr

5 years agomake the code for gtk2/3 a bit nicer.
Roger Wolff [Thu, 8 Aug 2019 09:21:45 +0000 (11:21 +0200)] 
make the code for gtk2/3 a bit nicer.

5 years agoMerge branch 'gtk3_with_fallback' of https://github.com/krisl/mtr
Rogier Wolff [Thu, 8 Aug 2019 09:13:53 +0000 (11:13 +0200)] 
Merge branch 'gtk3_with_fallback' of https://github.com/krisl/mtr

5 years agosimplification - remove sockaddrtop
Markus Kötter [Thu, 8 Aug 2019 09:07:37 +0000 (11:07 +0200)] 
simplification - remove sockaddrtop

5 years agoMerge branch 'master' of github.com:traviscross/mtr
R.E. Wolff [Thu, 8 Aug 2019 08:47:59 +0000 (10:47 +0200)] 
Merge branch 'master' of github.com:traviscross/mtr

5 years agofix warning on recent compilers.
R.E. Wolff [Thu, 8 Aug 2019 08:47:44 +0000 (10:47 +0200)] 
fix warning on recent compilers.

5 years agogtk_menu_popup -> gtk_menu_popup_at_pointer 318/head
Aaron Lipinski [Thu, 8 Aug 2019 02:54:46 +0000 (14:54 +1200)] 
gtk_menu_popup -> gtk_menu_popup_at_pointer

5 years agohbox/vbox -> gtk_box_new
Aaron Lipinski [Thu, 8 Aug 2019 02:50:11 +0000 (14:50 +1200)] 
hbox/vbox -> gtk_box_new

5 years agogtk3
Aaron Lipinski [Thu, 8 Aug 2019 02:28:58 +0000 (14:28 +1200)] 
gtk3

5 years agogtk_button_new_from_stock -> gtk_button_new_with_label
Aaron Lipinski [Thu, 8 Aug 2019 02:44:33 +0000 (14:44 +1200)] 
gtk_button_new_from_stock -> gtk_button_new_with_label

5 years agoGTK_OBJECT -> G_OBJECT
Aaron Lipinski [Thu, 8 Aug 2019 02:29:15 +0000 (14:29 +1200)] 
GTK_OBJECT -> G_OBJECT

5 years agogtk_menu_append -> gtk_menu_shell_append
Aaron Lipinski [Thu, 8 Aug 2019 02:23:20 +0000 (14:23 +1200)] 
gtk_menu_append -> gtk_menu_shell_append

5 years agoMerge pull request #166 from meingtsla/asn-open-always-hcreate
Roger Wolff [Wed, 7 Aug 2019 07:51:53 +0000 (09:51 +0200)] 
Merge pull request #166 from meingtsla/asn-open-always-hcreate

Fix repeated DNS queries when toggling ipinfo

5 years agoMerge pull request #315 from lembacon/find_source_addr
Roger Wolff [Tue, 6 Aug 2019 16:24:27 +0000 (18:24 +0200)] 
Merge pull request #315 from lembacon/find_source_addr

probe: fix find_source_addr