a bunch of really (not)good tests
This commit is contained in:
parent
2db5e1d3ac
commit
43ec0ddbca
4 changed files with 246 additions and 7 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue