Commit Graph

46 Commits

Author SHA1 Message Date
0a3d0c9440 refactor: update bandwidth checks in announce forwarding logic to prevent overload 2025-12-30 12:35:32 -06:00
04bd23e753 refactor: adjust rate limiter configuration in AnnounceManager for improved performance 2025-12-30 12:35:21 -06:00
25e0719954 fix: handle error when generating random tag in RequestPath method
All checks were successful
Go Build Multi-Platform / build (amd64, darwin) (push) Successful in 31s
Go Build Multi-Platform / build (arm, freebsd) (push) Successful in 32s
Bearer / scan (push) Successful in 7s
Go Build Multi-Platform / build (amd64, linux) (push) Successful in 32s
Go Build Multi-Platform / build (arm, windows) (push) Successful in 32s
Go Build Multi-Platform / build (wasm, js) (push) Successful in 44s
Go Build Multi-Platform / build (arm64, windows) (push) Successful in 47s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 51s
Go Revive Lint / lint (push) Successful in 1m1s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m44s
Run Gosec / tests (push) Successful in 1m7s
Go Build Multi-Platform / build (amd64, freebsd) (push) Successful in 9m23s
Go Build Multi-Platform / build (amd64, windows) (push) Successful in 9m25s
Go Build Multi-Platform / build (arm, linux) (push) Successful in 9m23s
Go Build Multi-Platform / build (arm64, freebsd) (push) Successful in 9m23s
Go Build Multi-Platform / build (arm64, darwin) (push) Successful in 9m25s
Go Build Multi-Platform / build (arm64, linux) (push) Successful in 9m25s
Go Build Multi-Platform / Create Release (push) Has been skipped
2025-12-30 12:13:49 -06:00
ac0407c954 refactor: update path request handling to use transportIdentity and improve logging with packet length 2025-12-30 01:30:35 -06:00
f96af89269 refactor: improve path request handling and link packet processing with enhanced logging and error management 2025-12-30 01:27:21 -06:00
3af2be27d8 cleanup: remove extra comments
All checks were successful
Bearer / scan (push) Successful in 31s
Go Build Multi-Platform / build (amd64, freebsd) (push) Successful in 32s
Go Build Multi-Platform / build (amd64, windows) (push) Successful in 31s
Go Build Multi-Platform / build (arm, linux) (push) Successful in 31s
Go Build Multi-Platform / build (arm64, windows) (push) Successful in 44s
Go Build Multi-Platform / build (arm64, linux) (push) Successful in 47s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 54s
Go Revive Lint / lint (push) Successful in 1m5s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m50s
Run Gosec / tests (push) Successful in 1m10s
Go Build Multi-Platform / build (amd64, darwin) (push) Successful in 9m23s
Go Build Multi-Platform / build (arm, freebsd) (push) Successful in 9m23s
Go Build Multi-Platform / build (amd64, linux) (push) Successful in 9m25s
Go Build Multi-Platform / build (arm, windows) (push) Successful in 9m25s
Go Build Multi-Platform / build (arm64, darwin) (push) Successful in 9m23s
Go Build Multi-Platform / build (arm64, freebsd) (push) Successful in 9m25s
Go Build Multi-Platform / Create Release (push) Has been skipped
2025-12-29 23:50:03 -06:00
e3d65525b8 feat: add TODOs for path table persistence and improve packet handling logic in transport 2025-12-29 23:27:32 -06:00
53e98c73af Add unit tests for Reticulum-Go packages including reticulum, storage, announce, channel, destination, identity, resource, and transport, ensuring comprehensive coverage of functionality.
Some checks failed
Go Build Multi-Platform / build (amd64, freebsd) (push) Successful in 51s
Go Build Multi-Platform / build (amd64, windows) (push) Successful in 49s
Go Build Multi-Platform / build (arm, linux) (push) Successful in 58s
Go Build Multi-Platform / build (arm64, darwin) (push) Successful in 57s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 49s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 53s
Run Gosec / tests (push) Successful in 1m25s
Go Revive Lint / lint (push) Successful in 48s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m39s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 4m59s
Go Build Multi-Platform / build (amd64, linux) (push) Successful in 9m39s
Go Build Multi-Platform / build (arm64, freebsd) (push) Successful in 9m33s
Go Build Multi-Platform / build (arm, windows) (push) Successful in 9m35s
Go Build Multi-Platform / build (arm, freebsd) (push) Successful in 9m37s
Go Build Multi-Platform / build (amd64, darwin) (push) Successful in 9m42s
Go Build Multi-Platform / Create Release (push) Has been skipped
2025-12-29 00:15:08 -06:00
49aee4818b Add unit tests for various packages including config, buffer, debug, pathfinder, rate, and resolver. 2025-12-28 22:55:28 -06:00
a34c211872 refactor: format code and add more constants
Some checks failed
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 12s
Go Build Multi-Platform / build (amd64, freebsd) (push) Successful in 51s
Go Build Multi-Platform / build (amd64, linux) (push) Successful in 49s
Go Build Multi-Platform / build (arm, freebsd) (push) Successful in 49s
Go Build Multi-Platform / build (amd64, windows) (push) Successful in 57s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 19s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 21s
Go Build Multi-Platform / build (arm64, darwin) (push) Successful in 44s
Go Build Multi-Platform / build (arm64, freebsd) (push) Successful in 48s
Go Build Multi-Platform / build (arm64, linux) (push) Successful in 47s
Go Build Multi-Platform / build (arm64, windows) (push) Successful in 46s
Run Gosec / tests (push) Successful in 45s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Revive Lint / lint (push) Successful in 9m48s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 19m13s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 19m19s
2025-12-28 22:27:16 -06:00
8e243a7c8b Update import paths to use the new Gitea paths
All checks were successful
Go Build Multi-Platform / build (amd64, windows) (push) Successful in 34s
Go Build Multi-Platform / build (amd64, freebsd) (push) Successful in 38s
Go Build Multi-Platform / build (amd64, linux) (push) Successful in 37s
Go Build Multi-Platform / build (arm, freebsd) (push) Successful in 32s
Go Build Multi-Platform / build (arm, linux) (push) Successful in 35s
Go Build Multi-Platform / build (arm64, darwin) (push) Successful in 34s
Go Build Multi-Platform / build (arm, windows) (push) Successful in 37s
Go Build Multi-Platform / build (arm64, freebsd) (push) Successful in 42s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Successful in 1m29s
Go Revive Lint / lint (push) Successful in 47s
Run Gosec / tests (push) Successful in 1m3s
Go Build Multi-Platform / build (amd64, darwin) (push) Successful in 27s
Go Build Multi-Platform / build (arm64, linux) (push) Successful in 44s
Go Build Multi-Platform / build (arm64, windows) (push) Successful in 42s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 1m5s
2025-12-20 20:02:49 -06:00
9b1f45ff77 Update module path to remove the GitHub 2025-12-20 19:19:30 -06:00
b743f57690 Improve error handling in processPathRequest by logging failures during local destination announcement and path request sending
Some checks failed
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 2s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 4s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 5s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Failing after 4s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 36s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 38s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Revive Lint / lint (push) Successful in 1m18s
Run Gosec / tests (push) Successful in 1m33s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 2s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 2s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 2s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 2s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 3s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 34s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Successful in 1m19s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
2025-12-06 12:19:46 -06:00
dd87da4a51 Fix packet handling in Transport to clarify link data processing
Some checks failed
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 22s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 30s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 29s
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 27s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 33s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 33s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 31s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Failing after 32s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Failing after 37s
Go Revive Lint / lint (push) Successful in 34s
Run Gosec / tests (push) Failing after 41s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 31s
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 30s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 31s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 32s
2025-12-01 20:52:04 -06:00
b489135c5b Enhance Transport struct with path request handling and cleanup mechanisms; introduce DiscoveryPathRequest and PathAnnounceEntry types for improved path management, and implement maintenance jobs for expired paths, discovery requests, and announces. 2025-12-01 20:30:53 -06:00
3b2a8591a7 Update link management by adding RegisterLink and UnregisterLink methods; improve handleLinkPacket and handleProofPacket for better link validation and error logging.
Some checks failed
Go Build Multi-Platform / build (amd64, windows) (push) Failing after 39s
Go Build Multi-Platform / build (amd64, freebsd) (push) Failing after 43s
Go Build Multi-Platform / build (amd64, linux) (push) Failing after 41s
Go Build Multi-Platform / build (amd64, darwin) (push) Failing after 45s
Go Build Multi-Platform / build (arm, freebsd) (push) Failing after 14s
Go Build Multi-Platform / build (arm, linux) (push) Failing after 13s
Go Build Multi-Platform / build (arm, windows) (push) Failing after 20s
Go Build Multi-Platform / build (arm64, freebsd) (push) Failing after 21s
Go Build Multi-Platform / Create Release (push) Has been skipped
Go Build Multi-Platform / build (arm64, darwin) (push) Failing after 20s
Go Build Multi-Platform / build (arm64, linux) (push) Failing after 21s
Go Build Multi-Platform / build (arm64, windows) (push) Failing after 20s
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Failing after 1m15s
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Failing after 1m17s
Go Revive Lint / lint (push) Successful in 1m11s
Run Gosec / tests (push) Failing after 1m30s
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
2025-12-01 20:02:02 -06:00
1133e9755d Add better logging in HandlePacket and handleLinkPacket for better error tracking and clarity 2025-11-21 12:42:18 -06:00
678ab32ee6 refactor: simplify index increment for IFAC code handling in handleAnnouncePacket for improved readability 2025-11-20 21:45:49 -06:00
72d70b2141 feat: add receipt management for packet handling, including registration, unregistration, and proof validation 2025-11-20 21:31:36 -06:00
3d943aaaef refactor: improve announce packet handling by clarifying address extraction and validation logic
Some checks failed
Go Build Multi-Platform / build (arm, freebsd) (push) Has been cancelled
Go Build Multi-Platform / build (arm, linux) (push) Has been cancelled
Go Build Multi-Platform / build (arm, windows) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, darwin) (push) Has been cancelled
Go Build Multi-Platform / build (amd64, windows) (push) Has been cancelled
Go Test Multi-Platform / Test (ubuntu-latest, amd64) (push) Has been cancelled
Run Gosec / tests (push) Has been cancelled
Go Revive Lint / lint (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, amd64) (push) Has been cancelled
Go Build Multi-Platform / build (amd64, linux) (push) Has been cancelled
Go Test Multi-Platform / Test (windows-latest, amd64) (push) Has been cancelled
Go Test Multi-Platform / Test (macos-latest, arm64) (push) Has been cancelled
Go Test Multi-Platform / Test (ubuntu-latest, arm64) (push) Has been cancelled
Go Build Multi-Platform / build (amd64, freebsd) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, freebsd) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, linux) (push) Has been cancelled
Go Build Multi-Platform / build (arm64, windows) (push) Has been cancelled
Go Build Multi-Platform / Create Release (push) Has been cancelled
Go Build Multi-Platform / build (amd64, darwin) (push) Has started running
2025-11-20 17:57:13 -06:00
22fc5093db perf: combine multiple append calls in transport 2025-11-09 00:05:31 -06:00
636d400f1e refactor: migrate to structured debug logging 2025-11-09 00:00:55 -06:00
005e2566aa Add destination registration and link handling in Transport 2025-10-07 22:43:45 -05:00
cc89bfef6e Update destination hash calculation in handleAnnouncePacket to use SHA256. 2025-10-07 21:31:40 -05:00
f53194be25 Fix announce packet handling to align with RNS specification. Enhance payload parsing, signature verification, and destination hash validation. Improve logging for better debugging of announce packet processing. 2025-09-27 05:48:33 -05:00
cebab6b2f3 Add debug logging and missing packet data 2025-09-27 04:41:25 -05:00
a0eca36884 Update logging in HandlePacket and handleAnnouncePacket. 2025-09-27 04:30:59 -05:00
456a95d569 Add benchmarking tests for packet and transport operations 2025-09-25 12:42:44 -05:00
5e0c829cf6 Fix: Address various static analysis warnings
- **pkg/announce/announce.go**: Added error handling for `rand.Read` to log potential issues when generating random hashes.
- **pkg/buffer/buffer.go**: Removed a redundant `#nosec G115` comment as the line no longer triggers the warning.
- **pkg/cryptography/aes.go**: Added `#nosec G407` to explicitly acknowledge the use of `cipher.NewCBCEncrypter` which is acceptable in this context.
- **pkg/transport/transport.go**: Removed redundant `#nosec G115` comments as the lines no longer trigger the warning.
2025-07-15 13:45:48 -05:00
a80f2bb2ac Add a GetConfig method to the Transport struct. 2025-07-15 13:40:28 -05:00
b9aebc8406 gosec fixes and added #nosec where necassary 2025-07-06 00:33:50 -05:00
Sudo-Ivan
79e1caa815 0.3.7 - announce packet improvements, cryptgraphy pkg, cleanup 2025-01-04 18:20:36 -06:00
Sudo-Ivan
ea8daf6bb2 0.3.6 - announce packet creation 2025-01-02 14:10:31 -06:00
Sudo-Ivan
9508e6e195 update packet creation 2025-01-01 19:12:32 -06:00
Sudo-Ivan
5acbef454f 0.3.5 2025-01-01 18:31:58 -06:00
Sudo-Ivan
0862830431 0.3.4 2025-01-01 17:00:11 -06:00
Sudo-Ivan
3ffd5b72a1 update 2025-01-01 02:03:12 -06:00
Sudo-Ivan
73af84e24f 0.3.3 2025-01-01 01:41:16 -06:00
Sudo-Ivan
30ea1dd0c7 0.3.2 2025-01-01 00:40:25 -06:00
Sudo-Ivan
54c401e2a5 buffer, channel, more transport constants 2024-12-31 17:02:51 -06:00
Sudo-Ivan
28d46921d3 0.3.0 2024-12-31 13:49:05 -06:00
Sudo-Ivan
f2c146b7c5 transport: update constants, functions 2024-12-31 11:21:55 -06:00
Sudo-Ivan
7a7ce84778 0.2.8 2024-12-30 12:58:43 -06:00
Sudo-Ivan
decbd8f29a 0.2.4 2024-12-30 03:50:52 -06:00
Sudo-Ivan
2e01fa565d update 0.2.0 2024-12-30 02:26:51 -06:00
Sudo-Ivan
668d7c56b5 init v0.1.0 2024-12-30 01:56:25 -06:00