tunnel config

This commit is contained in:
2026-05-06 01:39:11 +03:00
parent 63b7db4936
commit 855fb71b4e
3 changed files with 37 additions and 7 deletions

View File

@@ -1902,6 +1902,9 @@ typedef struct nn_ModemRequest {
// NULL for broadcast
const char *address;
size_t port;
// The signal strength it was sent at
// This is an *OUT* field, it is assumed the handler keeps track of the correct strength
size_t strengthSent;
} send;
// for getStrength, setStrength.
size_t strength;
@@ -1927,6 +1930,10 @@ typedef struct nn_Tunnel {
size_t maxValues;
// maximum logical packet size. Note that the encoding is more efficient than the packet size algorithm estimates
size_t maxPacketSize;
// minimum energy cost of 1 transmission
double basePacketCost;
// extra energy cost of 1 full transmission
double fullPacketCost;
} nn_Tunnel;
extern nn_Tunnel nn_defaultTunnel;