ip-spoofing 0.1.2

Library to send fake IPv4 headers & UDP/TCP-SYN packets to perform L3/L4 attacks
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// Custom Result type with two generic parameters for user convenience
pub type Result<T, E = Error> = std::result::Result<T, E>;

/// Describes possible errors that might happen when user interacts with this crate
#[derive(thiserror::Error, Debug)]
pub enum Error {
    #[error("I/O error: {0}")]
    IO(#[from] std::io::Error),
    #[error("nix crate error: {0}")]
    Nix(#[from] nix::Error),
    #[error("etherparse crate error: {0}")]
    Etherparse(#[from] etherparse::err::packet::BuildWriteError),
}