Skip to content

Commit

Permalink
Split (#13)
Browse files Browse the repository at this point in the history
* Restruct folders

* Remove unused stuff

* Organizing

* final org

* Fix test

* Add offsets

* Add initial test for negotiations

* Remove print

* Add more idiomatic rust and pattern matching

* Option when needed

* Add firmware select

* Add possibility of selecting offsets

* Remove some code dup

* Some correction using rust rover
  • Loading branch information
fedebuonco authored Oct 28, 2024
1 parent a50390e commit 6ad6ba4
Show file tree
Hide file tree
Showing 17 changed files with 2,372 additions and 1,891 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ lcov.info

# Ignore all files in test_data/ folder except for .pcap files
.DS_Store
scripts
38 changes: 0 additions & 38 deletions run_simul.sh

This file was deleted.

2 changes: 0 additions & 2 deletions src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@ pub const RW_INIT_FLAGS: u32 = (4 << LO_CLASSSHIFT) | LO_INITIALIZED | LO_WITNES
pub const RW_UNLOCKED: u64 = 1;
pub const SOCKADDR_IN6_SIZE: u8 = 0x1c;
pub const SOURCE_IPV4: [u8; 4] = [0x29, 0x29, 0x29, 0x29];
pub const SOURCE_IPV4_STRING: &str = "41.41.41.41";

pub const SPRAY_NUM: u32 = 0x1000;
pub const TARGET_IPV4: [u8; 4] = [0x2A, 0x2A, 0x2A, 0x2A];
pub const TARGET_IPV4_STRING: &str = "42.42.42.42";

pub const ZERO: u64 = 0;

Expand Down
Loading

0 comments on commit 6ad6ba4

Please sign in to comment.