Skip to content
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

Cover two ACK/NAK edge cases for admin packets #1971

Merged
merged 3 commits into from
Nov 22, 2022

Conversation

GUVWAF
Copy link
Member

@GUVWAF GUVWAF commented Nov 21, 2022

This covers two edge cases I found when testing with admin packets to remote nodes via the CLI.

The first commit ensures that a NAK with "NOT_AUTHORIZED" error is also sent when the receiving node doesn't have an admin channel and want_response is not set, but want_ack is. Otherwise, the Admin Module will just ignore the packet, while the Routing Module happily sends an ACK because indeed it received the packet.

The second commit makes sure that a NAK with "NO_CHANNEL" error is sent on the primary channel in case two admin channels do not have the same PSK. Otherwise actually an assert fails if want_ack is set, because it is trying to send an ACK while it cannot decrypt the packet.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 21, 2022

🤖 Pull request artifacts

file commit
pr1971-firmware-2.0.4.35d7e11.zip 35d7e11

thebentern added a commit to meshtastic/artifacts that referenced this pull request Nov 21, 2022
thebentern added a commit to meshtastic/artifacts that referenced this pull request Nov 21, 2022
@thebentern thebentern merged commit 5417671 into meshtastic:master Nov 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants