diff options
| author | zedddie <zedddie@noreply.codeberg.org> | 2026-03-15 21:19:52 +0100 |
|---|---|---|
| committer | zedddie <zedddie@noreply.codeberg.org> | 2026-03-15 21:19:52 +0100 |
| commit | 190603e4847a076ca3f990ee3378714c651351d1 (patch) | |
| tree | 7e15cc1d5d9c5b38c60747862eccf86e2d5f2825 /src/sniffing/headers.rs | |
| parent | 2db5e1d3ac44846bdadc434675206dde70f245ec (diff) | |
| parent | 43ec0ddbcad432b74ee9fa0a3589d001ec6dc8d4 (diff) | |
Merge pull request 'a bunch of really (not)good tests' (#2) from headers-tests into main
Reviewed-on: https://codeberg.org/NamelessTeam/nsc/pulls/2
Diffstat (limited to 'src/sniffing/headers.rs')
| -rw-r--r-- | src/sniffing/headers.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 { // <https://www.geeksforgeeks.org/computer-networks/what-is-ipv4/> V4 { |
