| Crates.io | cursock |
| lib.rs | cursock |
| version | 1.2.7 |
| created_at | 2023-02-02 08:48:10.852715+00 |
| updated_at | 2023-06-21 19:19:10.823548+00 |
| description | Crate for raw socketing, can be used for sending raw packets and some protocols |
| homepage | https://github.com/CURVoid/cursock.git |
| repository | https://github.com/CURVoid/cursock.git |
| max_upload_size | |
| id | 774634 |
| size | 100,531 |
Crate for raw socketing, can send raw packets and some protocols
Icmp, Arp and Adapter structsIpPacked which represents eth + (ipv4 | ipv6) headersIcmp structuse 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();