Commit Graph

1354 Commits

Author SHA1 Message Date
Hamish Coleman
4a724c10a2 Dont need to tell configure to subst some vars as they are exported by default 2023-06-25 02:07:49 +08:00
Hamish Coleman
1581b74027 Update everything to reference the simpler tool autodetection 2023-06-25 02:07:49 +08:00
Hamish Coleman
4bbee2c3b5 Use the standard autoconf macros to help with cross-compile 2023-06-25 02:07:49 +08:00
Hamish Coleman
1b83e0e0e9 Remove some config items that are just wrong with cross compilation 2023-06-25 02:07:49 +08:00
Hamish Coleman
3b5855707f Need to specify a windres tool name for non cross compiled windows 2023-06-25 02:07:49 +08:00
Hamish Coleman
0545a54b13 Allow windres to run when cross compiling 2023-06-25 02:07:49 +08:00
Hamish Coleman
0dd94a1123 Fix distclean with newer config.mak style 2023-06-24 23:31:20 +08:00
Hamish Coleman
4f9a7d31d3 Fix bug in returned interface address 2023-06-24 23:31:20 +08:00
Hamish Coleman
7b77950352 Address lint concerns 2023-06-24 23:31:20 +08:00
Hamish Coleman
e8c7457b80 Fix null pointer de-ref 2023-06-24 23:31:20 +08:00
Hamish Coleman
b5a8210efd
Merge pull request #1119 from hamishcoleman/iwyu
Refactor to "include-what-you-use"

This patchset aims to make future refactoring and cleanups simpler by ensuring that each file includes what it uses - see https://include-what-you-use.org/ for some more details about this concept and the tool used to help perform the refactoring.

No functional change is intended or expected and all tests are passing.

The include-what-you-use tool is awkward to use with the current state of the build system - and will always be difficult to use in a multi-platform safe way. However, I hope to provide a non manual process for running with the tool in the future.
2023-06-20 19:49:16 +01:00
Hamish Coleman
a7fc1c2bbc Merge branch 'dev' into iwyu 2023-06-18 12:31:58 +01:00
Hamish Coleman
585b3cec59 iwyu: n2n.h
There is still cleanup work to be done in the headers, but this
concludes the major include-what-you-use refactoring.  No functional
change is intended or expected and all tests are passing.

It is now a lot easier to see what is used from each header and work on
possible refactoring in the future.

The include-what-you-use tool is awkward to use with the current state
of the build system - and will always be difficult to use in a
multi-platform safe way.  However, I hope to provide a non manual
process for running with the tool in the future.
2023-06-18 12:14:23 +01:00
Hamish Coleman
771fdec013 iwyu: tools/test*.c 2023-06-18 11:34:28 +01:00
Hamish Coleman
0a20265228 iwyu: n2n-route.c 2023-06-18 11:14:47 +01:00
Hamish Coleman
290ac83788 iwyu: n2n-portfwd.c 2023-06-18 10:58:00 +01:00
Hamish Coleman
7439d88a00 iwyu: n2n-keygen.c 2023-06-18 10:56:05 +01:00
Hamish Coleman
11fbea4223 iwyu: n2n-benchmark.c 2023-06-18 10:55:07 +01:00
Hamish Coleman
b9dcb3fd35 iwyu: wire.c 2023-06-18 09:32:08 +01:00
Hamish Coleman
de56ebb127 iwyu: tuntap_linux.c 2023-06-18 09:12:36 +01:00
Tony
e397a5af75
Add close window support for Windows (#1111)
* Add close window support for Windows

* Support logoff and shudown events as well

Without this change, when you close the terminal/shell window, it won't have the time to clean up which can cause authentication errors if you try to reconnect.

Blocking here infinitely is fine since when our main thread returns, it will shut down anyway

I found Go is doing this when I was searching, and there's a comment explained how it works: https://github.com/golang/go/issues/41884#issuecomment-706695923
2023-06-18 09:02:05 +01:00
Tony
76cbff370e
Fix purgeable is always false on supernode peer list (#1117)
* Fix purgeable is always false on sn peer list
- And change sn_purge to bool

* Change all keep_on_running to bool

* Fix wrong `keep_running` type
2023-06-18 08:58:49 +01:00
Hamish Coleman
852fc6ea8f Minimal update to transform_zstd suggested by iwyu.
This file was not active during the iwyu run, so it will need to be
expanded upon later.
2023-06-16 11:05:35 +01:00
Hamish Coleman
3e47641630 Actually test the zstd support before editing the transform_zstd 2023-06-16 09:56:53 +01:00
Hamish Coleman
0e175d35f6 iwyu: transform_tf.c 2023-06-16 09:44:53 +01:00
Hamish Coleman
76629dcf6a iwyu: transform_speck.c 2023-06-16 09:44:04 +01:00
Hamish Coleman
6deebe6f1a iwyu: transform_null.c 2023-06-16 09:43:02 +01:00
Hamish Coleman
89cb9419c7 iwyu: transform_lzo.c 2023-06-16 09:42:18 +01:00
Hamish Coleman
8b6fcb8ab6 iwyu: transform_cc20.c 2023-06-16 09:41:08 +01:00
Hamish Coleman
8443c29428 iwyu: transform_aes.c 2023-06-16 09:40:16 +01:00
Hamish Coleman
fa4cf74ff2 iwyu: supernode.c 2023-06-16 09:33:52 +01:00
Hamish Coleman
6ee14559f9 iwyu: sn_utils.c 2023-06-16 09:26:04 +01:00
Hamish Coleman
a8356c93db iwyu: sn_selection.c 2023-06-16 09:19:39 +01:00
Hamish Coleman
4f769e765b iwyu: sn_management.c 2023-06-16 09:13:40 +01:00
Hamish Coleman
aae43c5eb8 iwyu: network_traffic_filter.c 2023-06-16 09:11:40 +01:00
Hamish Coleman
3452b7ee4d iwyu: n2n_regex.c 2023-06-16 09:09:16 +01:00
Hamish Coleman
c3ed39375c iwyu: n2n_port_mapping.c 2023-06-16 09:07:58 +01:00
Hamish Coleman
b1cb7fe03e iwyu: n2n.c 2023-06-16 08:48:15 +01:00
Hamish Coleman
796ca2cb97 iwyu: management.h 2023-06-16 08:36:28 +01:00
Hamish Coleman
06c2e012d7 iwyu: management.c 2023-06-16 08:30:22 +01:00
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