-
Notifications
You must be signed in to change notification settings - Fork 38
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
Plugins configuration files #210
base: main
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 1809099953Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch! I'm still going through your proposed changes, but left comments for some low hanging fruit. Several of the tests in the GitHub build are also failing with these changes in places (see the "Checks" tab).
Yeah, I noticed. Since I didn't know if you would agree with some of the changes I though it would be better to send the patch before actually finishing and cleaning it. |
Although it did not appear during the checks, In
I'm gonna try to get a workaround in order for the check to be successful. |
Which compiler are you using? |
That's very interesting. |
Strange. I tested on both Ubuntu 21.10 and Fedora with gcc 11.2 and the latest ELL with no problem. I'll keep digging. |
Are you configuring mptcpd in a specific way or just running |
Just |
Would it be possible to bump the version of ell to one >= 0.45 of the automated builds to check if the error occurs? |
I bumped the version of ell of the automated build in one of my forks and got the same error (check https://github.com/MPTCP-Lab/mptcpd/tree/plugins_confs_test2 which contains the patch without the workaround and with ell == 0.48). Although the workaround works (check https://github.com/MPTCP-Lab/mptcpd/tree/plugins_confs_test which has the workaround and ell == 0.48), I don't know if there is any problem with the way the workaround was done, for example with the licenses, since it is a copy of the |
I'm still having a hard time reproducing the C++ build error you're running into. For example, the build against the ELL master branch I added in PR #222 works fine. I'll try with the code coverage build like you did. |
The error only occurs with this patch, since it adds With the master version the error does not occur. |
Okay, I see. Do I'll probably modify the |
I have the habit of just including where the structs/types in use are defined. The inclusion of
You are right. I never thought of that. I already reverted the workaround and just declared the |
Adds a new plugin operation that allows to read a configuration file.
It receives the filename of the configuration file, a parser function and an extra argument that is passed to the parser function.
It also adds a new option to define where the configuration files are located.
The default location is created when
make install
is executed.Closes #174.