ystero-dev / scalpel

Packet Dissection and sculpting in Rust
Other
2 stars 6 forks source link

Defining our own types for IP Addresses #2

Open gabhijit opened 3 years ago

gabhijit commented 3 years ago

We already have types for Ethernet MAC Address (MACAddress) and Ether Type (EtherType) defined which work well for us for Debug and Display printing and any other custom handling. Along the similar lines, we should be defining -

  1. ~IPv4 and IPv6 address types.~
  2. IP Options types for different IP options
gabhijit commented 3 years ago

This commit completes basic implementation of IPv4 and IPv6 address types.