1
This commit is contained in:
Evan Pratten 2023-08-04 22:29:59 -04:00
parent eabfbfc8b6
commit a01ee1068b
4 changed files with 1 additions and 4 deletions

View File

@ -5,7 +5,6 @@ use cfg_if::cfg_if;
pub mod protomask; pub mod protomask;
pub mod protomask_clat; pub mod protomask_clat;
// Used to trick the build process into including a CLI argument based on a feature flag // Used to trick the build process into including a CLI argument based on a feature flag
cfg_if! { cfg_if! {
if #[cfg(feature = "profiler")] { if #[cfg(feature = "profiler")] {

View File

@ -107,4 +107,3 @@ impl From<StaticMap> for (Ipv4Addr, Ipv6Addr) {
(val.ipv4, val.ipv6) (val.ipv4, val.ipv6)
} }
} }

View File

@ -3,5 +3,5 @@
pub mod logging; pub mod logging;
pub mod packet_handler; pub mod packet_handler;
pub mod permissions; pub mod permissions;
pub mod profiler;
pub mod rfc6052; pub mod rfc6052;
pub mod profiler;

View File

@ -8,7 +8,6 @@ pub enum PacketHandlingError {
FastNatError(#[from] fast_nat::error::Error), FastNatError(#[from] fast_nat::error::Error),
} }
/// Get the layer 3 protocol of a packet /// Get the layer 3 protocol of a packet
pub fn get_layer_3_proto(packet: &[u8]) -> Option<u8> { pub fn get_layer_3_proto(packet: &[u8]) -> Option<u8> {
// If the packet is empty, return nothing // If the packet is empty, return nothing