Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[trivial] Refactor / cleanup some code parts #46

Merged
merged 1 commit into from
May 25, 2023
Merged

Conversation

fako1024
Copy link
Owner

Closes #45

@fako1024 fako1024 added enhancement New feature or request performance Performance / optimization related topics labels May 22, 2023
@fako1024 fako1024 added this to the Initial Release (v1) milestone May 22, 2023
@fako1024 fako1024 requested a review from els0r May 22, 2023 09:53
@fako1024 fako1024 self-assigned this May 22, 2023
@fako1024 fako1024 linked an issue May 22, 2023 that may be closed by this pull request
@@ -231,3 +176,41 @@ func blockSizeTPacketAlign(x, blockSize int) (int, error) {

return 0, fmt.Errorf("no valid frame size found for capture length %d / block size %d", x, blockSize)
}

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've moved all currently unused methods down here and commented them (might be that we use some of them in the future, and looking up the required struct positions can be tedious, so I hope keeping commented code is acceptable in this situation...

@fako1024
Copy link
Owner Author

@els0r Trivial refactor / cleanup, feel free to approve at your convenience. TY!

@fako1024
Copy link
Owner Author

@els0r Friendly ping... 🙏

@els0r
Copy link
Collaborator

els0r commented May 24, 2023

I keep missing the slimcap stuff. Sry

@fako1024
Copy link
Owner Author

I keep missing the slimcap stuff. Sry

No worries, thanks man!

@fako1024 fako1024 merged commit 29aeda7 into main May 25, 2023
@fako1024 fako1024 deleted the 45-minor-code-cleanup branch May 25, 2023 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance Performance / optimization related topics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minor code cleanup
2 participants