Closed sweep-ai[bot] closed 10 months ago
GitHub actions yielded the following error.
The relevant lines from the logs for debugging are:
error[E0560]: struct `FluereRecord` has no field named `source`
error[E0560]: struct `FluereRecord` has no field named `destination`
error[E0560]: struct `FluereRecord` has no field named `d_pkts`
error[E0560]: struct `FluereRecord` has no field named `d_octets`
error[E0560]: struct `FluereRecord` has no field named `src_port`
error[E0560]: struct `FluereRecord` has no field named `dst_port`
error[E0560]: struct `FluereRecord` has no field named `in_pkts`
error[E0560]: struct `FluereRecord` has no field named `out_pkts`
error[E0560]: struct `FluereRecord` has no field named `fin_cnt`
error[E0560]: struct `FluereRecord` has no field named `syn_cnt`
error[E0560]: struct `FluereRecord` has no field named `rst_cnt`
error[E0560]: struct `FluereRecord` has no field named `psh_cnt`
error[E0560]: struct `FluereRecord` has no field named `ack_cnt`
error[E0560]: struct `FluereRecord` has no field named `urg_cnt`
error[E0560]: struct `FluereRecord` has no field named `ece_cnt`
error[E0560]: struct `FluereRecord` has no field named `cwr_cnt`
error[E0560]: struct `FluereRecord` has no field named `ns_cnt`
error[E0609]: no field `d_pkts` on type `&mut FluereRecord`
error[E0609]: no field `d_octets` on type `&mut FluereRecord`
error[E0609]: no field `in_pkts` on type `&mut FluereRecord`
error[E0609]: no field `out_pkts` on type `&mut FluereRecord`
error[E0609]: no field `fin_cnt` on type `&mut FluereRecord`
error[E0609]: no field `syn_cnt` on type `&mut FluereRecord`
error[E0609]: no field `rst_cnt` on type `&mut FluereRecord`
error[E0609]: no field `psh_cnt` on type `&mut FluereRecord`
error[E0609]: no field `ack_cnt` on type `&mut FluereRecord`
error[E0609]: no field `urg_cnt` on type `&mut FluereRecord`
error[E0609]: no field `ece_cnt` on type `&mut FluereRecord`
error[E0609]: no field `cwr_cnt` on type `&mut FluereRecord`
error[E0609]: no field `ns_cnt` on type `&mut FluereRecord`
The command that failed is cargo build --release --verbose
in the cd fluereflow
directory.
There are a lot of errors. This is likely due to a small parsing issue or a missing import with the files changed in the PR.
This is likely a linting or type-checking issue with the source code. Update the code changed by the PR. Don't modify the existing tests.
I'm getting the same errors 3 times in a row, so I will stop working on fixing this PR.
Description
This PR optimizes and modularizes the code in the
live_fluereflow
module to improve maintainability and prepare for future refactoring to use thepnet-rs
library. The main changes include:packet_capture
function insrc/net/online_fluereflow.rs
into smaller, more manageable functions.src/net/parser/fluereflows.rs
to improve readability and modularity.FluereRecord
struct influereflow/src/types/fluereflow.rs
into smaller structs and using a builder pattern for creating instances.Summary of Changes
In
src/net/online_fluereflow.rs
:packet_capture
function into smaller functions for better modularity.In
src/net/parser/fluereflows.rs
:parse_fluereflow
function to improve readability and modularity.In
fluereflow/src/types/fluereflow.rs
:FluereRecord
struct into smaller structs for better organization.FluereRecord
to improve readability and flexibility.These changes make the code more maintainable and prepare it for future enhancements and refactoring.
Fixes #47.
To checkout this PR branch, run the following command in your terminal:
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: