MTR problem

I cannot use mtr on my FreeBSD (FreeBSD 14.2-RELEASE-p1 GENERIC)

mtr: 0.95_2

mtr-packet: Unable to send with swapped length: Invalid argument


mtr: Failure to start mtr-packet: Invalid argument
 
"It doesn't work, why?" without providing additional information isn't the kind of question anyone can answer; that will only result in a guessing game.

For starters... how did you install net/mtr (or did you grab net/mtr-nox11?), and also what port or package release do you follow (latest or quarterly)?

And then... how did you try to fire it up? What command did you try to use?
 
Hello, pal

Thanks for your response.

I installed it by root account. It did not work. I removed it.

After that, I created a account and set up sudo, making the new user can access root privileges by sudo.

Finally, I re-install MTR package.

All times of MTR installation were done by pkg command.
 
Seems to work fine.
Code:
                                                                                           Packets               Pings
 Host                                                                                    Loss%   Snt   Last   Avg  Best  Wrst StDev
 1. 192.168.10.1                                                                          0.0%     6    0.4   0.4   0.3   0.4   0.0
 2. 195.190.228.20                                                                        0.0%     6    9.4   3.9   2.3   9.4   2.8
 3. (waiting for reply)
 4. (waiting for reply)
 5. 129.250.2.232                                                                         0.0%     5    5.5   5.8   5.4   6.3   0.4
 6. 129.250.2.3                                                                           0.0%     5   14.0  13.6  13.2  14.2   0.5
 7. 129.250.4.149                                                                         0.0%     5   14.4  14.0  13.5  14.6   0.5
 8. 129.250.6.6                                                                           0.0%     5   91.3  90.9  90.7  91.3   0.2
 9. 129.250.3.255                                                                         0.0%     5   90.3  90.4  90.0  91.0   0.4
10. (waiting for reply)
11. (waiting for reply)
12. (waiting for reply)
13. (waiting for reply)
14. 104.225.2.113                                                                         0.0%     5  105.2 105.1 104.5 105.6   0.4
15. 162.223.10.29                                                                         0.0%     5  103.4 103.8 103.4 104.3   0.5
Code:
dice@fbsd-test:~ % pkg info -x mtr
mtr-nox11-0.95_2
 
What's the exact command you used? Did you use any additional options? Mine was just a simple mtr -n -4 <dest-addr>, no other options.
 
Previously I use some arguments. Currently, I just tried:
Code:
user@host:~ $ sudo mtr 127.0.0.1
mtr-packet: Unable to send with swapped length: Invalid argument
mtr: Failure to start mtr-packet: Invalid argument
Besides, the machine is a 2009 AMD cpu based one.
 
Don't need to sudo(8) it.
Code:
                                                       My traceroute  [v0.95]
fbsd-test.dicelan.home (127.0.0.1) -> 127.0.0.1 (127.0.0.1)                                                2025-05-21T16:01:45+0200
Keys:  Help   Display mode   Restart statistics   Order of fields   quit
                                                                                           Packets               Pings
 Host                                                                                    Loss%   Snt   Last   Avg  Best  Wrst StDev
 1. localhost                                                                             0.0%     2    0.2   0.2   0.2   0.2   0.0

Are you perhaps running this inside a jail?
the machine is a 2009 AMD cpu based one.
I doubt this matters, but what's the exact model?
 
Back
Top