-
Notifications
You must be signed in to change notification settings - Fork 11
Rework of the Python Filter (Depends on PR Support UDP TCP #224) #232
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
Draft
ThibaudCartegnie
wants to merge
56
commits into
dev
Choose a base branch
from
python_filter
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.
Draft
Changes from 51 commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
a4ea276
separated unix socket logic from generic logic in the server class in…
534ba48
Separated logic between tasks and Sessions, the separation is only ap…
ThibaudCartegnie 9da70fd
Fixed potential corruption :
ThibaudCartegnie 0149aee
Separated Sessions into UnixSession and TcpSession
ThibaudCartegnie 60f0efc
WIP : First draft of DarwinPacket struct
ThibaudCartegnie 551209b
Finished integration of DarwinPacket in session
ThibaudCartegnie 3c0be86
Modified DarwinPacket to be more OOP-like
ThibaudCartegnie e8426bf
Re-wired some things in the tasks
ThibaudCartegnie 6072b7f
Put back structs in c header
ThibaudCartegnie f9b8b0f
Adapted all compiled filters
ThibaudCartegnie de6f710
Added parsing of tcp/udp
ThibaudCartegnie d957e01
Adapted TcpServer and Config for ip addresses
ThibaudCartegnie 711dc9d
DarwinPacket: fixed issues with the serialization
ThibaudCartegnie 3a46fe0
Separated NextFilterConnector in :
ThibaudCartegnie 070660b
Moved all network related objects to network folder
ThibaudCartegnie 3be3f48
Fixed Set of asio buffer in ANextFilterConnector
ThibaudCartegnie 2436f5d
Fixed memory issues:
ThibaudCartegnie 80955db
Fixed problem with the manager
ThibaudCartegnie 55dfa07
Fixed manager (failed previous commit)
ThibaudCartegnie 98a3039
RedisManager: modified Rate Limit connection logic
ThibaudCartegnie 36e2ae0
Adapted ATask, Asession and DarwinPacket
ThibaudCartegnie b8cbf63
Adapted tests to TCP :
ThibaudCartegnie 00b207d
Added tests for TCP connections
ThibaudCartegnie 5139e2a
Added UDP protocol to darwin
ThibaudCartegnie 79e7036
Merge branch 'dev' into support_tcp_udp
ThibaudCartegnie b8d24db
fixed few issues with the manager
ThibaudCartegnie 9fabcd9
Added comments documentation
ThibaudCartegnie 47e58b7
Fixed method names
ThibaudCartegnie 3daf60c
Few modification of NextFilter handling
ThibaudCartegnie 06f9cbf
Few fixes when passing information to next filters
ThibaudCartegnie 8694a44
Added a tests for multi filters using the manager
ThibaudCartegnie 7b61fdd
Fixed issue with UUIDs
ThibaudCartegnie aa1b53c
Fixed problems with next filters, cleaned tests
ThibaudCartegnie aa05f12
Modified config of next filter for easier configuration
ThibaudCartegnie b088029
Modified protocol.h
ThibaudCartegnie 13f4ab3
Fixed clang/gcc warnings
ThibaudCartegnie b3478ed
Fixed compilation issues on hardenedBSD
ThibaudCartegnie 15ef861
Fixed last issue with UDP NextFilterConnector
ThibaudCartegnie 016d80f
Added Thread Pool Cpp dependency
ThibaudCartegnie 901e5e5
First working version
ThibaudCartegnie c7330b5
Modified function structures, added missing links
ThibaudCartegnie 466e3d2
WIP : fixed few things in the protocol python - Shared Lib
ThibaudCartegnie 86649fa
WIP : fixed return of operator (not completely)
ThibaudCartegnie 85055e0
Merge branch 'support_tcp_udp' into python_filter
ThibaudCartegnie 4e1fc71
Adapted filter for support_udp_tcp
ThibaudCartegnie 3064dd8
WIP working threads, memory issues
ThibaudCartegnie f3e619b
Fixed issues with memory usage, added config step
ThibaudCartegnie 4446f0d
Fixed memory problems with python, meory usage is now stable
ThibaudCartegnie 71c133d
Added configuration and contextualization phases
ThibaudCartegnie ad2d7fd
Refactored FunctionPySo and functions loading methods
ThibaudCartegnie 372430b
Added possibility to log through darwin
ThibaudCartegnie 8a6df55
Fix Compile issues : added cmake findPython module
ThibaudCartegnie 5291f7b
Moved example.py
ThibaudCartegnie fd76920
Added tests and corrections
ThibaudCartegnie 6d30340
Changed structure of expected python script
ThibaudCartegnie ff920e9
Resolve comments
ThibaudCartegnie File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| set(PYTHON_NAME darwin_python) | ||
|
|
||
| ####################### | ||
| # FILTER DEPENDENCIES # | ||
| ####################### | ||
|
|
||
| include_directories(SYSTEM /usr/include/python3.8) | ||
| link_directories(/usr/lib/python3.8/config-3.8-x86) | ||
|
|
||
| ################### | ||
| # EXECUTABLE # | ||
| ################### | ||
|
|
||
|
|
||
| add_executable( | ||
| ${PYTHON_NAME} | ||
| ${DARWIN_SOURCES} | ||
| samples/fpython/PythonTask.cpp samples/fpython/PythonTask.hpp | ||
| samples/fpython/Generator.cpp samples/fpython/Generator.hpp | ||
| ) | ||
|
|
||
| target_link_libraries( | ||
| ${PYTHON_NAME} | ||
| ${DARWIN_LIBRARIES} | ||
| python3.8 | ||
| crypt | ||
| pthread | ||
| dl | ||
| util | ||
| m | ||
| ) | ||
|
|
||
| target_include_directories(${PYTHON_NAME} PUBLIC samples/fpython/) | ||
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.