11 releases (7 breaking)

0.7.0 Aug 17, 2023
0.5.2 Jul 16, 2023
0.4.1 Aug 28, 2022
0.3.1 May 7, 2022

#2133 in Network programming

Download history 155/week @ 2024-01-13 82/week @ 2024-01-20 507/week @ 2024-01-27 845/week @ 2024-02-03 643/week @ 2024-02-10 153/week @ 2024-02-17 53/week @ 2024-02-24 123/week @ 2024-03-02 44/week @ 2024-03-09 34/week @ 2024-03-16 5/week @ 2024-03-23 37/week @ 2024-03-30 26/week @ 2024-04-06 134/week @ 2024-04-13 6/week @ 2024-04-20 5/week @ 2024-04-27

175 downloads per month
Used in 2 crates

MIT license

85KB
2K SLoC

tracert Crates.io License

Cross-platform library for traceroute and ping. Written in Rust.

Features

  • traceroute
    • IPv4 UDP
    • IPv6 UDP
  • ping
    • IPv4 ICMPv4
    • IPv6 ICMPv6
    • IPv4 UDP
    • IPv6 UDP
    • IPv4 TCP
    • IPv6 TCP

Usage

Add tracert to your dependencies

[dependencies]
tracert = "0.7"

Note for Windows users

You may need to set up firewall rules that allow ICMP Time-to-live Exceeded and ICMP Destination (Port) Unreachable packets to be received.

netsh example

netsh advfirewall firewall add rule name="All ICMP v4" dir=in action=allow protocol=icmpv4:any,any
netsh advfirewall firewall add rule name="All ICMP v6" dir=in action=allow protocol=icmpv6:any,any

Additional Notes

This library requires the ability to create raw sockets. Execute with administrator privileges.

Dependencies

~4–38MB
~524K SLoC