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

Refactor Observer #14

Merged
merged 1 commit into from
Aug 6, 2024
Merged

Refactor Observer #14

merged 1 commit into from
Aug 6, 2024

Conversation

sudarshan-reddy
Copy link
Owner

This PR does three things:

  1. Removes the nested if loops and makes that part readable by adding more functions.

  2. Adds some tests (this needs more work to add an exact tcp packet like unit test. Also introduces a stop mechanism to the observer for the tests primarily.

  3. Make the hashmap ttl-like so abandoned SYN packets are not stored forever.

This PR does three things:

1. Removes the nested if loops and makes that part readable by adding
   more functions.

2. Adds some tests (this needs more work to add an exact tcp packet like
   unit test. Also introduces a stop mechanism to the observer for the
   tests primarily.

3. Make the hashmap ttl-like so abandoned SYN packets are not stored
   forever.
@sudarshan-reddy sudarshan-reddy self-assigned this Aug 6, 2024
@sudarshan-reddy sudarshan-reddy merged commit a5d1539 into main Aug 6, 2024
1 check passed
@sudarshan-reddy sudarshan-reddy deleted the refactor-observer branch August 6, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant