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
37 stars 3 forks source link

Optimize and modularize code in parser module #49

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR optimizes and modularizes the code in the parser module of the Fluere project. The goal is to improve code maintainability, readability, and efficiency. The changes include refactoring the _parse_ipv4 function in ipv4.rs, separating the parsing logic for different protocols in ports.rs, refactoring the _parse_etherprotocol function in etherprotocol.rs, and separating the parsing logic for different packet types in fluereflows.rs.

Summary of Changes

These changes optimize the code, improve modularity, and prepare the codebase for a future refactor to use the pnet-rs library.

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: