From 43ec0ddbcad432b74ee9fa0a3589d001ec6dc8d4 Mon Sep 17 00:00:00 2001 From: zedddie Date: Sun, 15 Mar 2026 21:17:05 +0100 Subject: a bunch of really (not)good tests --- src/sniffing/headers.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sniffing/headers.rs') diff --git a/src/sniffing/headers.rs b/src/sniffing/headers.rs index c90a849..9b605b9 100644 --- a/src/sniffing/headers.rs +++ b/src/sniffing/headers.rs @@ -3,7 +3,7 @@ use tun::Error; // Here we will recieve bytes and try to get their destanation & apply Rules for them. use crate::config::Config; -#[derive(Debug)] +#[derive(Debug, PartialEq)] pub enum Protocol { TCP, UDP, @@ -12,7 +12,7 @@ pub enum Protocol { type Ipv4 = [u8; 4]; type Ipv6 = [u8; 16]; type Port = u16; -#[derive(Debug)] +#[derive(Debug, PartialEq)] pub enum PacketInfo { // V4 { -- cgit v1.2.3