Skip to content

mtr doesn't display correct data when using in -l (--raw) mode. #27057

@eakteam

Description

@eakteam

When executing mtr in raw mode it displays:

e.x: ./mtr -l -n -c 2 -m 64 -i 1.0 172.67.175.107

output:

x 0 33000
x 1 33001
h 1 10.198.9.97
h 1 10.198.9.97
p 1 21205 33001
x 2 33002
h 2 10.240.146.14
h 2 10.240.146.14
p 2 19036 33002
h 0 10.198.9.98
h 0 10.198.9.98
p 0 222668 33000
x 3 33003
h 3 109.234.232.61
h 3 109.234.232.61
p 3 18775 33003
x 4 33004
h 4 109.234.232.225
h 4 109.234.232.225
p 4 18626 33004
x 5 33005
h 5 79.106.78.9
h 5 79.106.78.9
p 5 20004 33005
x 6 33006
x 7 33007
h 7 154.54.62.69
h 7 154.54.62.69
p 7 26371 33007
x 8 33008
h 8 130.117.50.122
h 8 130.117.50.122
p 8 29810 33008
x 9 33009
h 9 154.54.74.185
h 9 154.54.74.185
p 9 25170 33009
x 10 33010
h 10 149.14.192.10
h 10 149.14.192.10
p 10 36097 33010
x 11 33011
h 11 172.67.175.107
h 11 172.67.175.107
p 11 29672 33011
x 12 33012
h 12 172.67.175.107
h 12 172.67.175.107
p 12 28497 33012
x 0 33013
p 0 27143 33013
x 1 33014
p 1 18105 33014
x 2 33015
p 2 19551 33015
x 3 33016
p 3 20073 33016
x 4 33017
p 4 17085 33017
x 5 33018
p 5 19042 33018
x 6 33019
x 7 33020
p 7 30229 33020
x 8 33021
p 8 26609 33021
x 9 33022
p 9 28881 33022
x 10 33023
p 10 30001 33023
x 11 33024
p 11 25239 33024

which doesn't make any sense and dont follow hostline|xmitline|pingline|dnsline|timestampline|mplsline as this example :

13.|-- 144.232.18.238 0.0% 2 94.8 95.4 94.8 96.0 0.8
 14.|-- 152.63.16.182 0.0% 2 95.1 95.5 95.1 95.8 0.5
 15.|-- 152.63.64.106 0.0% 2 163.9 163.9 163.9 164.0 0.1
 16.|-- 152.63.50.89 50.0% 2 163.7 163.7 163.7 163.7 0.0
 17.|-- 152.179.99.218 50.0% 2 168.2 168.2 168.2 168.2 0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions