-
-
Notifications
You must be signed in to change notification settings - Fork 850
feat: VLAN-style region tagging for untagged flood packets #2073
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Changes from 4 commits
85a3b1d
d93746e
c9f08e5
44c7023
a06984b
e5d9eb7
b2d8039
4751380
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,6 +16,8 @@ namespace mesh { | |
| #define ROUTE_TYPE_DIRECT 0x02 // direct route, 'path' is supplied | ||
| #define ROUTE_TYPE_TRANSPORT_DIRECT 0x03 // direct route + transport codes | ||
|
|
||
| #define TRANSPORT_CODE_ALL 0xFFFF // special transport code: forward to all regions | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Client apps will need to support sending packets with this code, which is different from sending without a scope. @liamcottle
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I had hoped that maybe this could be implemented in the client apps. Perhaps a one-time toggle for a message which then reverts? Just to gently encourage people not to just scope every message to all
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm against '0xFFFF'; that can way to easily be abused to DDOS the whole network. I'd say a large region can decide on their own whether to agree on a region wide flood code for emergencies or not. |
||
|
|
||
| #define PAYLOAD_TYPE_REQ 0x00 // request (prefixed with dest/src hashes, MAC) (enc data: timestamp, blob) | ||
| #define PAYLOAD_TYPE_RESPONSE 0x01 // response to REQ or ANON_REQ (prefixed with dest/src hashes, MAC) (enc data: timestamp, blob) | ||
| #define PAYLOAD_TYPE_TXT_MSG 0x02 // a plain text message (prefixed with dest/src hashes, MAC) (enc data: timestamp, text) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.