Crate for raw socketing, can send raw packets and some protocols
- reimplemented
Icmp
,Arp
andAdapter
structs - added
IpPacked
which represents eth + (ipv4 | ipv6) headers - handling dest mac address for
Icmp
struct
- Add ipv6 support for Icmp
- Arp
- Icmp
- Windows (npcap)
- Linux
- docs.rs - https://docs.rs/cursock
- github - https://github.com/CURVoid/cursock.git
use cursock::*;
use cursock::utils::*;
let socket = Socket::new("wlan0").expect("initialize error");
let mut buffer = [0; 1000];
socket.read_raw_packet(&mut buffer).expect("read error");
socket.destroy();