-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add support to TCP and UDP protocols #224
Open
ThibaudCartegnie
wants to merge
45
commits into
dev
Choose a base branch
from
support_tcp_udp
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…plied on the dga filter for now
If more than 1 certitude is sent back to client AND a body is set, the body is copied on the memory location of the certitudes It is fixed by using the correct offset when copying the body data. The other function using similar logic has been modified to keep it coherent.
UnixSessions are spawn by UnixServer and TcpSessions by TcpServer Included a modification when passing arguments from sessions to task (move instead of ref)
- Used to pass needed data from Session to Task
(some work is still need for the tasks)
State accessible by const getters only State mutable with only two methods : add Certitude and mutateBody
Added a few methods for DarwinPacket
Added ParseBody in ATask::run with error handling
Fixed issues with threadpool instance and size issues in the ASession
Fixed issues in the serialization Added support for ipv6 in Tcp sessions
Adapted python manager to handle tcp sockets
The packet was illformed near the certitudes NextFilterConnector: Working WIP
Abstract/Tcp/Unix, fixed configuration for nextFilter
- DarwinPacket copied only the first 15 bytes of event id - Destructor of AServer wasn't virtual leading to memory leak when UnixServer was destroyed
Service.update did not update nettwork field
Added retry attempts, modified tests accordingly
Proprietary filters needed additional methods for accessing private fields of a packet
Added possibility to run all tests in TCP mode
Assured working with ipv4 and ipv6 addresses Fixed a few log lines in the redis test file
Fixed a few problems and cleaned some code Added tests for tcp and udp Added possibility to run all test in unix or tcp
Removed unused methods
Specification of move semantic for DarwinPacket
Fixed a fex things accordingly
EvtIdToString passed from Session to DarwinPacket
Also cleaned ASession a bit
added packed attribute to darwin header Removed certitude list default size Modified parsing and serializing accordingly
Most case were unused variables or poorly chosen types
Fixed issue with positional flags between test/manager and filters
frikilax
reviewed
Dec 28, 2021
- errors in comments - missing parts of tests (and logging missing) - removed useless variable in NextFilterConnector
Yeah, I'll try being lighter next time when suggesting changes: applying/validating them is a pain on github 😅 |
Outside my remaining comments (which aren't really important, except the one on RedisManager.cpp), everything seems great! @HugoSoszynski thoughts on the PR and remaining comments I made (especially this one)? |
8 tasks
frikilax
previously approved these changes
Feb 1, 2022
HugoSoszynski
previously approved these changes
Mar 28, 2022
Removed TODO : No handling of tcp case needed in that part, nothing to be changed
ThibaudCartegnie
dismissed stale reviews from HugoSoszynski and frikilax
via
April 7, 2022 09:07
c6352dd
frikilax
approved these changes
Apr 22, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✨ Add support to TCP and UDP protocols #224
📃 Type of change
Breaking change: fix or feature that would cause existing functionality to not work as expected.
✒️ Description
This PR adds the support for udp and tcp besides Unix sockets.
There are 2 major changes for the protocol :
This draft is pushed for early comments.
🎯 Test Environments
Ubuntu (20.04)
HardenedBSD (12.2)
✔️ Checklist: