Logan oos Even
19e1bf87c9
fixed sn sort return value ( #936 )
3 years ago
Logan oos Even
f59c6900a1
moved compression code into transforms ( #961 )
3 years ago
Hamish Coleman
4b8aaa7f6e
Merge pull request #947 from hamishcoleman/json_pubsub
Add JSON pubsub framework for edge
3 years ago
Logan oos Even
cbad152994
limited federation broadcast to active supernodes only ( #958 )
3 years ago
Hamish Coleman
a271dc7039
Merge pull request #956 from hamishcoleman/dev
Ensure an error is generated when compiling with invalid options
3 years ago
Hamish Coleman
aab0d508df
Ensure an error is generated when compiling with invalid options
3 years ago
Hamish Coleman
af39fa12d8
Merge pull request #953 from hamishcoleman/dev
Ensure definitions are included before ifdef
3 years ago
Hamish Coleman
30a5694cfe
Ensure definitions are included before ifdef
Addresses issue raised in (#934 )
3 years ago
Hamish Coleman
99d56a8a7b
Improve build docs ( #952 )
3 years ago
Hamish Coleman
017f1cf60e
Address lint issues
3 years ago
Hamish Coleman
860b27d97c
Add event publishing for adding and removing P2P peers
3 years ago
Hamish Coleman
a40ed15d93
Add pubsub system to edge, with one example TEST channel
3 years ago
Hamish Coleman
509a8bcd14
Add a buffer object with a known size field to replace multiple hardcoded N2N_PKT_BUF_SIZE
3 years ago
Hamish Coleman
598ce63981
Use getnameinfo to show the subscribed socket details
3 years ago
Hamish Coleman
9c77d0becd
Address warning
3 years ago
Hamish Coleman
58fedeed95
Add a helper for simple 1 arg json replies
3 years ago
Hamish Coleman
64e5329bca
Refactor command handler lookup into a macro for reuse in the topic lookup
3 years ago
Hamish Coleman
e2a33b7571
Implement initial help command for subscription topics
3 years ago
Hamish Coleman
3fd1dc5fa8
keep private enum definition local to the management code
3 years ago
Hamish Coleman
e3899d1b76
Give a magic number a better name
3 years ago
Hamish Coleman
06b8f1a08f
Refactor management command list to allow it to be declared const with no warnings
3 years ago
Hamish Coleman
3e2c2d63bc
Add basic structures to be used for pubsub
3 years ago
Hamish Coleman
40773b4e4d
Ensure we have a local copy of the tag in our request structure - which will be useful for the event framework
3 years ago
Hamish Coleman
5bcc6fe67a
Tracebacks contain full paths and cannot be part of the expected test data
3 years ago
Hamish Coleman
35c83a0825
Simplify edge mgmt handling by building a request structure and using it for replies
3 years ago
Hamish Coleman
9278e15896
Add at least one test that should cause a failed auth
3 years ago
Hamish Coleman
6e4cf85915
As we are in our own namespace, we can ditch the n2n_ prefix to some definitions
3 years ago
Hamish Coleman
ace3dbc44f
Move all supernode management handling into one source file
3 years ago
Hamish Coleman
a8e2704b41
Move all management packet handling for edge into the one source file
3 years ago
Hamish Coleman
f0d883fde8
of course, tuntap drivers are needed to run edge, so we cannot test that on darwin without writing a dummy tuntap driver
3 years ago
Hamish Coleman
91d325b73a
actions/upload-artifact@v2 with path does not take a list
3 years ago
Hamish Coleman
662e17afd6
Keep the tests output on failure for a cmake build too
3 years ago
Hamish Coleman
75a205ec69
Only need to keep the tests output if there has been a failure
3 years ago
Hamish Coleman
004ef6eaaf
Add quick Json API test for edge
3 years ago
Hamish Coleman
ecaba980ba
Attempt to simplify adding new tests
3 years ago
Hamish Coleman
1f501c70ac
Include more known good style-guide files to the linter
3 years ago
Hamish Coleman
6bc08b8e0b
Add more ways to get help from the indent.sh script
3 years ago
Hamish Coleman
e0ce73f684
Add management source code as known good for styleguide
3 years ago
Hamish Coleman
e22e453d2c
Add an integration test and a bunch of framework to support tests on multiple build systems
3 years ago
Hamish Coleman
3713d357c8
Document the tricky code - TODO, make it less tricky
3 years ago
Hamish Coleman
954547a9c1
Remove the only obstacle that stopped running the supernode as a normal user
3 years ago
Hamish Coleman
84f69623e1
Dont forget to update the other build system
3 years ago
Hamish Coleman
9cc04d6b28
Limit code coverage to unit tests - any integration tests should not be considered as coverage
3 years ago
Hamish Coleman
351f7628d0
Separate testing out into types, just unit tests for the moment, allowing for integration tests
3 years ago
Hamish Coleman
150c32562d
Refactor the PHONY make targets to be near their target definitions
3 years ago
Hamish Coleman
bcb3c223d9
Address lint concern
3 years ago
Hamish Coleman
fbad36705e
Unify the python API class
3 years ago
Hamish Coleman
7f163858cf
Update to Compiling documentation ( #945 )
3 years ago
Hamish Coleman
e9fccd9932
Fix Cmake libpcap detection logic ( #943 )
* Fix cmake informational log messages
* If the correct library name is used find_library works better
* Re-enable remaining find_library users
* Reorder cmake to make libpcap detection work
3 years ago
Hamish Coleman
670aadcf1b
Address CMake config ordering requirements ( #942 )
For a moment there, I was starting to think that I might have found
a good feature in cmake, but then it turned out that it had specific
ordering requirements and strange cryptic functions that error out
in mysterious ways.
If I am going to have an antique build engine with special quirks that
I must learn in order to use it, I may as well choose the one that is
not also trying to be clever and hiding its internal magic from me.
Which means that I still prefer Makefiles - they are more debuggable.
3 years ago