Skip to content

Commit

Permalink
Add next_hop and relay_node to MeshPacket
Browse files Browse the repository at this point in the history
  • Loading branch information
GUVWAF committed Nov 18, 2024
1 parent 52688fd commit 739a6d4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 3 additions & 1 deletion meshtastic/mesh.options
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
*MeshPacket.hop_limit int_size:8
*MeshPacket.hop_start int_size:8
*MeshPacket.channel int_size:8
*MeshPacket.next_hop int_size:8
*MeshPacket.relay_node int_size:8

*QueueStatus.res int_size:8
*QueueStatus.free int_size:8
Expand Down Expand Up @@ -75,4 +77,4 @@

*ChunkedPayload.chunk_count int_size:16
*ChunkedPayload.chunk_index int_size:16
*ChunkedPayload.payload_chunk max_size:228
*ChunkedPayload.payload_chunk max_size:228
14 changes: 13 additions & 1 deletion meshtastic/mesh.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1233,6 +1233,18 @@ message MeshPacket {
* Indicates whether the packet was en/decrypted using PKI
*/
bool pki_encrypted = 17;

/*
* Last byte of the node number of the node that should be used as the next hop in routing.
* Set by the firmware internally, clients are not supposed to set this.
*/
uint32 next_hop = 18;

/*
* Last byte of the node number of the node that will relay/relayed this packet.
* Set by the firmware internally, clients are not supposed to set this.
*/
uint32 relay_node = 19;
}

/*
Expand Down Expand Up @@ -2040,4 +2052,4 @@ message ChunkedPayloadResponse {
*/
resend_chunks resend_chunks = 4;
}
}
}

0 comments on commit 739a6d4

Please sign in to comment.