Commit 03f278e
Allow CAN unicast to remote node-ID 0
Review finding #12 (Medium). Node-ID 0 is a valid regular node in
Cyphal/CAN v1 (only v0/DroneCAN treated 0 as anonymous; libcanard permits
a remote 0 and a service destination 0), and the wire encoder already
accepts it, but unicast() guarded 1 <= remote_id, so the ACK path could
not answer a node-0 peer and reliable delivery from such a peer never
completed. The destination range is now 0..127.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CabiCDQ5DNBYq8WDKRzG4Z1 parent d5e3e5f commit 03f278e
2 files changed
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
254 | 256 | | |
255 | 257 | | |
256 | 258 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | | - | |
104 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
105 | 114 | | |
106 | 115 | | |
107 | 116 | | |
| |||
0 commit comments