mcpherrinm / traceroute Goto Github PK
View Code? Open in Web Editor NEWRust traceroute
Rust traceroute
I just wanted to make you aware of the work related to ICMP with rust in libpnet.
0th error
rustc t.rs
t.rs:17:5: 17:9 error: macro undefined: 'fail!'
t.rs:17 fail!("{} isn't 0x45. Not IPv4, or header options set", version_and_hdrlen);
^~~~
changed fail to panic. have no idea if thats right, just trying to get it to build.
first error
t.rs:23:19: 23:35 error: unresolved name `std::io::SeekSet`
t.rs:23 reader.seek(12, std::io::SeekSet).unwrap();
fixed by changing std::io::SeekSet to 0
second error
t.rs:14:29: 14:42 error: wrong number of lifetime parameters: expected 0, found 1 [E0107]
t.rs:14 fn print_ip<'a>(mut reader: BufReader<'a>) -> BufReader<'a> {
^~~~~~~~~~~~~
t.rs:14:29: 14:42 error: wrong number of type arguments: expected 1, found 0 [E0243]
t.rs:14 fn print_ip<'a>(mut reader: BufReader<'a>) -> BufReader<'a> {
^~~~~~~~~~~~~
t.rs:14:47: 14:60 error: wrong number of lifetime parameters: expected 0, found 1 [E0107]
t.rs:14 fn print_ip<'a>(mut reader: BufReader<'a>) -> BufReader<'a> {
^~~~~~~~~~~~~
t.rs:14:47: 14:60 error: wrong number of type arguments: expected 1, found 0 [E0243]
t.rs:14 fn print_ip<'a>(mut reader: BufReader<'a>) -> BufReader<'a> {
^~~~~~~~~~~~~
error: aborting due to 4 previous errors
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.