Quantcast
Channel: Read Rust - Web and Network Services
Viewing all articles
Browse latest Browse all 100

Crafting ICMP-bearing IPv4 packets with the help of bitvec

$
0
0
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 going to be exactly the same.

Right now, we don't have a way to serialize that.

Let's take the version and ihl fields, both of which are supposed to take 4 bits, together making a byte.

Viewing all articles
Browse latest Browse all 100

Trending Articles