550 Commits
Author SHA1 Message Date
Hamish Coleman 0c6f7ca5cb iwyu: hexdump.c 2023-06-16 08:14:36 +01:00
Hamish Coleman 9fc5782efd iwyu: header_encryption.c 2023-06-15 22:44:34 +01:00
Hamish Coleman 89bd21d6b8 iwyu: example_edge_embed.c and example_sn_embed.c 2023-06-15 22:38:04 +01:00
Hamish Coleman c6a9b17338 iwyu: edge_utils.c 2023-06-15 22:30:35 +01:00
Hamish Coleman 5b00ff480e iwyu: edge_management.c 2023-06-15 22:18:47 +01:00
Hamish Coleman 0fcf18fab2 Fix edge.c 2023-06-15 22:02:27 +01:00
Hamish Coleman 991a8bc59f Fix aes.c 2023-06-15 21:39:54 +01:00
Hamish Coleman f6cebecd01 iwyu: edge.c 2023-06-14 21:27:05 +01:00
Hamish Coleman 14780a72d3 iwyu: aes.c 2023-06-14 21:22:25 +01:00
Hamish Coleman ce9e3d0e54 Fix tf.h 2023-06-14 21:06:40 +01:00
Hamish Coleman 8e1d63fa51 iwyu: tf.h 2023-06-14 20:59:09 +01:00
Hamish Coleman 91357d3cbf Fixup for speck.c 2023-06-14 20:42:02 +01:00
Hamish Coleman 4e0bec79b7 iwyu: speck.h 2023-06-14 20:30:43 +01:00
Hamish Coleman f67cc8f2a6 iwyu: random_numbers.h 2023-06-14 20:14:11 +01:00
Hamish Coleman 15ad901b41 iwym: pearson.h 2023-06-14 20:02:54 +01:00
Hamish Coleman 04ce678969 iwym: json.h 2023-06-14 19:52:10 +01:00
Hamish Coleman 4838dd8d75 iwym: header_encryption.h 2023-06-13 22:38:47 +01:00
Hamish Coleman 20df771af7 iwym: cc20.h 2023-06-13 21:45:11 +01:00
Hamish Coleman ae3d54eed6 iwym: auth.h 2023-06-13 21:24:30 +01:00
e01daf4a85 support linux l2 bridge (#1044)
* support linux l2 bridge

* unified timeout name

* typo

* minor code style adaptions

* feature define

* feature define

* feature define

* feature define

* added hint to bridging to help output

* added hint to bridging

* drafted bridging documentation

* added bridging hint

---------

Co-authored-by: Logan oos Even <46396513+Logan007@users.noreply.github.com>
2023-05-04 11:00:38 +08:00
Logan oos EvenandGitHub 709590d66e separated counter variables (#1078) 2023-02-25 18:03:14 +01:00
Hamish Coleman 24c1569c88 It appears that supernode_disconnect() might only be called in the original code in the TCP case, so add that test - even though the function appear to work in either caes 2023-02-01 12:39:37 +00:00
Hamish Coleman 9e98023a3f None of the callers of sendto_sock check the result, so make this clear in the function prototype 2023-02-01 12:39:37 +00:00
lemonshandHamish Coleman 46212656a5 fix 'superndode' typo in edge and supernode help text 2023-01-31 16:10:22 +00:00
Wtz_LASRandGitHub bfc4c5886d fix fill_n2nsock failing on macOS (#1071) 2023-01-15 21:52:20 +00:00
Sharuzzaman Ahmat RaslanandGitHub a74435c559 fixing minor typo (#1052)
fixing minor typo sepcified -> specified
2022-10-11 08:48:11 +02:00
Hamish ColemanandGitHub 06c489fd8a Merge pull request #1040 from hamishcoleman/dev
Guard against pointer overrun if sock is set negative
2022-07-09 13:58:19 +01:00
Hamish Coleman 3d9d881920 Guard against pointer overrun if sock is set negative 2022-07-09 13:11:42 +01:00
Logan oos EvenandGitHub cf23457d3b added sock type field to data structure (#1031) 2022-06-28 19:09:04 +02:00
Logan oos EvenandGitHub 053ab381b3 fixed endianess issue in federated sn socket forwarding (#1030) 2022-06-28 16:53:12 +02:00
Logan oos EvenandGitHub 95cfbca5a9 more sockaddr generalization (#1028) 2022-06-27 22:21:03 +02:00
Logan oos EvenandGitHub 439dfc6886 generalized sockaddr usage in edge (#1026) 2022-06-26 17:17:22 +02:00
Logan oos EvenandGitHub ffb4e31b8a encapsulated several fillings of n2n_sock_t in single function (#1025)
* encapsulated several fillings of n2n_sock_t in single function

* Windows specifics...

* stuck to the project's style code
2022-06-26 00:07:29 +02:00
Logan oos EvenandGitHub 063db27ea6 corrected url notation 2022-06-25 20:42:55 +02:00
Logan oos EvenandGitHub eff5f56d21 added to one branch in n2n-sock-to-string conversion (#1024) 2022-06-25 20:27:33 +02:00
Logan oos EvenandGitHub 7927bd7294 added optional choice of bind address (-p) to supernode (#1016) 2022-06-16 12:00:48 +02:00
dwj0andGitHub a88236aee3 modified scan_address() fixing possible netmask bitlen error when -a provided IP address lacks slash (#1012) 2022-06-11 15:38:44 +02:00
Logan oos EvenandGitHub f63cb718b3 unified verbosity handling for edge and tools (#1009) 2022-06-05 18:57:14 +02:00
Logan oos EvenandGitHub 51a3a71f95 introduced n2n-portfwd tool (#1008)
* moved dev to version 3.1.1

* introduced n2n-portfwd tool

* moved port-forwarding source to tool

* adjusted tiny things, seemingly works with ./configure's  --enable-miniupnp  and  --enable-natpmp

* adjusted for Windows

* wished for better typing skills

* applied some finishing touch

* typo
2022-06-05 18:05:40 +02:00
Logan oos EvenandGitHub 99b6b6b66d added n2n-route tool (#982)
* moved dev to version 3.1.1

* laid ground for n2n-route tool

* adapted code style

* overhauled n2n-route's tool program logic and removed route code from edge

* added missing initialization of federation's purgeable field

* lifted un/purgeable confusion

* added warning about removed -n cli option

* realized that Windows does not offer inet_aton()

* removed -n option documentation from edge's man page

* slightly simplified n2n-route program logic

* applied more logic changes to n2n-route tool

* added 'info' read command to edge's management port

* corrected indention

* added Linux route control to n2n-route tool

* temporarily restricted n2n-route tool to Linux only

* We must be over the routing!

* pulled default gateway change detection into main loop to cover mobile use, and added devstr_t type

* corrected use of new UNPURGEABLE - so far gone unnoticed

* addresses possiible address issue

* i broke it

* reverted bad ideas

* added command line options, help text, and prevented vpn gateway being used for supernode/peer traffic routes

* added option to manually provide default gateway, also verbosity options

* getting there

* added option to limit networks to be routed (-n), adapted documentation

* fine-tuned minor things
2022-05-24 20:38:51 +02:00
Hamish Coleman afd0020d16 Refactor sendto_fd and friends in an attempt to find anything that could segfault 2022-05-17 23:33:41 +01:00
Hamish Coleman a00aa63dd7 We are not in python any more, Toto 2022-05-08 18:05:40 +01:00
Hamish Coleman 47768758d6 Fix use before null check 2022-05-08 17:51:00 +01:00
Hamish Coleman 038c244407 Fix supernode memory leak on exit path 2022-05-08 17:28:05 +01:00
Hamish Coleman 7a2075c456 Fix for address overrun 2022-05-08 16:46:00 +01:00
Hamish Coleman 188af371ba Fix leak 2022-05-08 15:48:29 +01:00
Luca Deri 23e168b955 Fixed warning 2022-05-06 22:30:20 +02:00
Hamish ColemanandGitHub 3fa0fa1bbe Merge pull request #983 from hamishcoleman/json_pubsub
Refactoring management code to increase sharing
2022-04-30 18:21:36 +01:00
Hamish ColemanandGitHub 009311d016 Provide better details when sendto_fd fails (#981)
* Refactor traceEvent to allow variable log levels

* Refactor sendto failed for less repetition

* Refactor sendto_fd to make control flow clearer, also reduce repetition

* Tie size to the actual object not its class

* Show destination that had issues when sendto_fd fails

* Fix MSVC compile - it doesnt support the same variadic macros as gcc
2022-04-25 19:13:14 +02:00
Hamish Coleman ddf9bd894d Fiddle with windows headers 2022-04-17 00:50:59 +01:00