Steve Holden
a07e853f69
Refactor to remove pylint issues.
...
Since one of pylint's complains was that the globals module was
shadowing the built-in, and since the name `config` was already
is use in several modules, globals.py was renamed as mt_config.py.
All tests now pass, and the only remaining local pylint errors
relate to the protobuf code, I'm hoping this will make the PR
valid.
2024-04-10 17:42:44 +01:00
Steve Holden
067cddd354
Refactor to avoid the use of a special global object.
...
The global object formerly used is now replaced by direct use
of the namespace opf the globals module. This eliminates the
redundant getters and setters and simplifies the code for
future maintainers.
Note that the globals module name conflicts (harmlessly at
present) with a Python built-in function. A future commit
should rename it `config` to remove this clash and better
represent its intended purpose.
2024-04-10 10:03:12 +01:00
Ian McEwen
4baef92523
Fix assorted mypy-detected errors
2024-03-29 18:38:25 -07:00
Ian McEwen
bf56521a53
Create Tunnel.TunnelError for specialized errors in that file
2024-03-19 13:00:06 -07:00
Ben Meadors
67636c4ce2
Revert "Move pb2 Files to Own Folder"
2024-03-11 12:18:25 -05:00
foglet15
df8ea85873
change to PbDefinitions for clearer naming
2024-02-25 14:22:15 -05:00
foglet15
9a4feecea8
move pb2 to own folder, regen script writes to new folder, update imports
2024-02-25 13:11:36 -05:00
Ben Meadors
fe8ae6237e
Merge pull request #469 from marek22k/improve-argument-handling
...
Improve argument handling
2024-01-04 20:30:36 -06:00
Marek Küthe
2464bcf414
Tunnel: Add overlay peer discovery to blocklist
2023-12-09 11:50:47 +00:00
Marek Küthe
b468a0c908
Tunnel: Check other arguments
2023-12-04 12:55:36 +00:00
Thomas Göttgens
7e6f13f0a2
establish trunk format
2023-03-31 20:09:59 +02:00
Mike Kinney
0f89baa36e
fix the pylint unused-argument warnings
2022-01-12 14:41:49 -08:00
Mike Kinney
5c662822b9
need to fully qualify imports so projects consuming the library will work
2022-01-05 11:16:08 -08:00
Mike Kinney
105276f98e
add unit tests for _shouldFilterPacket()
2021-12-31 12:17:04 -08:00
Mike Kinney
9adbed4be6
add unit tests for onTunnelReceive()
2021-12-30 22:52:49 -08:00
Mike Kinney
d366e74e86
refactor of Tunnel() for unit testing; create unit tests for Tunnel()
2021-12-30 21:24:32 -08:00
Mike Kinney
2fcfdeb04f
minor formatting; added unit tests for Node()
2021-12-16 09:10:45 -08:00
Mike Kinney
624c933dbf
fix (or disable) pylint warnings
2021-12-08 15:00:57 -08:00
Mike Kinney
035ec09b20
fix quick and easy pylint fixes
2021-11-30 14:16:33 -08:00
Kevin Hester
3bbbead497
fix formatting
2021-02-26 15:47:52 +08:00
Simonas
26a52e3004
Fix MTU - set after mesh interface is up
...
Fix based on pytap2 docs/examples
https://pypi.org/project/pytap2/
2021-01-03 18:37:20 +02:00
Kevin Hester
5a56207440
1.1.31 bury taptun2 deeper so that windows can't accidentally touch it
2020-12-31 09:17:16 +08:00
Kevin Hester
728d7f4a1d
1.1.28 hopefully fix windows
2020-12-24 20:12:55 +08:00
Kevin Hester
fff7857ace
only require pytap if user tries to run 'mesh-tunnel'
2020-12-24 13:24:35 +08:00
Kevin Hester
b86a41949c
IP tunnel works! fix #35
2020-12-24 11:02:27 +08:00
Kevin Hester
cf71dcac68
better debug output
2020-12-24 10:52:24 +08:00
Kevin Hester
85b664c63c
better icmp debug
2020-12-24 10:14:36 +08:00
Kevin Hester
8d25a23c19
make log messages less chatty
2020-12-24 09:48:08 +08:00
Kevin Hester
2cc10abcc3
add pytap2 dependency
2020-12-23 22:39:53 +08:00
Kevin Hester
7f66d324b3
allow arbitrary subnets for the ip tunnel
2020-12-23 17:45:54 +08:00
Kevin Hester
e59fe9af72
IP tunnel almost works #35
2020-12-23 17:32:36 +08:00
Kevin Hester
888d753b58
sending/receiving IP packets over mesh now kinda works (but ugly) #35
2020-12-23 13:50:57 +08:00
Kevin Hester
8c4d48b956
add beginnings of tunnel code #35
2020-12-23 12:05:08 +08:00