nullnet_firewall/
data_link.rs

1/// Data link type associated with packets processed by the firewall.
2///
3/// If not specified, Ethernet will be used.
4#[derive(Default, Copy, Clone, Debug, PartialEq)]
5pub enum DataLink {
6    /// Suitable for packets starting with an Ethernet header.
7    #[default]
8    Ethernet,
9    /// Suitable for packets starting with an IPv4 or IPv6 header.
10    RawIP,
11}