SkuldNorniern / fluere

Fluere is a powerful and versatile tool designed for network monitoring and analysis. It is capable of capturing network packets in pcap format and converting them into NetFlow data, providing a comprehensive view of network traffic. It also Provides Terminal User Interface.
Apache License 2.0
29 stars 3 forks source link

Optimize and modularize code in live_fluereflow #50

Closed sweep-ai[bot] closed 10 months ago

sweep-ai[bot] commented 10 months ago

Description

This PR optimizes and modularizes the code in the live_fluereflow module to improve maintainability and prepare for future refactoring to use the pnet-rs library. The main changes include:

Summary of Changes

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:

git checkout {pull_request.branch_name}

🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can:

sweep-ai[bot] commented 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.