1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//! Library package for performing network scanning of any LAN
//!
//! This is the rust version of [go-lanscan package](https://github.com/robgonnella/go-lanscan)
//!
//! # Examples
//!
//! ## ARP Scanning
//!
//! <https://github.com/robgonnella/r-lanscan/blob/main/lib/examples/arp-scanner.rs>
//!
//! ```bash
//! sudo -E cargo run --example arp-scanner -p r-lanlib
//! ```
//!
//! ## SYN Scanning
//!
//! <https://github.com/robgonnella/r-lanscan/blob/main/lib/examples/syn-scanner.rs>
//!
//! ```bash
//! sudo -E cargo run --example syn-scanner -p r-lanlib
//! ```
//!
//! ## Full Scanning (ARP + SYN)
//!
//! <https://github.com/robgonnella/r-lanscan/blob/main/lib/examples/full-scanner.rs>
//!
//! ```bash
//! sudo -E cargo run --example full-scanner -p r-lanlib
//! ```
use MacAddr as PnetMacAddr;
/// Represents a MAC address for a device
pub type MacAddr = PnetMacAddr;