Consuming Ethernet frames with the nom crate
Making our own ping: Part 9
Now that we’ve found the best way to find the “default network interface”… what can we do with that interface?
Well, listen for network traffic of...
Parsing IPv4 packets, including numbers smaller than bytes
Making our own ping: Part 11
Hello and welcome to Part 11 of this series, wherein we finally use some of the code I prototyped way back when I was planning this series.
Where are we standing?
Parsing and serializing ICMP packets with cookie-factory.
Making our own ping: Part 12
In the last part, we’ve finally parsed some IPv4 packets. We even found a way to filter only IPv4 packets that contain ICMP packets.
There’s one thing we...
Crafting ARP packets to find a remote host's MAC address
Making our own ping: Part 13
Alright. ALRIGHT. I know, we’re all excited, but let’s think about what we’re doing again.
So we’ve managed to look at real network traffic and parse it...
Crafting ICMP-bearing IPv4 packets with the help of bitvec
Making our own ping: Part 14
So. Serializing IPv4 packets. Easy? Well, not exactly.
IPv4 was annoying to parse, because we had 3-bit integers, and 13-bit integers, and who knows what else. Serializing it is...