tracert

Crates.iotracert
lib.rstracert
version0.8.0
sourcesrc
created_at2022-04-24 14:44:43.841025
updated_at2024-05-19 12:47:11.459091
descriptionCross-platform library for traceroute and ping
homepage
repositoryhttps://github.com/shellrow/tracert
max_upload_size
id573159
size107,683
shellrow (shellrow)

documentation

README

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.8"

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.

Commit count: 99

cargo fmt