summaryrefslogtreecommitdiffhomepage
path: root/src/pkt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkt.rs')
-rw-r--r--src/pkt.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/pkt.rs b/src/pkt.rs
index f51151d..5955f42 100644
--- a/src/pkt.rs
+++ b/src/pkt.rs
@@ -18,8 +18,6 @@
use anyhow::Result;
use etherparse::{IpSlice, TcpSlice};
use anyhow::anyhow;
-#[cfg(target_os = "linux")]
-use std::sync::atomic::Ordering;
use crate::opt;
use crate::platform;
@@ -236,7 +234,7 @@ pub fn put_hop(pkt: &[u8]) {
/// Return Ok(true) if packet is handled
pub fn handle_packet(pkt: &[u8], buf: &mut Vec::<u8>) -> Result<bool> {
#[cfg(target_os = "linux")]
- let is_filtered = platform::IS_U32_SUPPORTED.load(Ordering::Relaxed);
+ let is_filtered = platform::is_kernel_filtered_clienthello();
#[cfg(windows)]
let is_filtered = true;