UDP endpoint mapping uses incorrect masking values.
@maksimdrachov 已经在做这个了。
开始于 2023年6月29日。
评估
这个 Issue 还没有评估数据。
描述
---
pycyphal/transport/udp/_ip/_endpoint_mapping.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pycyphal/transport/udp/_ip/_endpoint_mapping.py b/pycyphal/transport/udp/_ip/_endpoint_mapping.py
index 6b4168d..f3cf6cc 100644
--- a/pycyphal/transport/udp/_ip/_endpoint_mapping.py
+++ b/pycyphal/transport/udp/_ip/_endpoint_mapping.py
@@ -22,9 +22,9 @@ FIXED_MASK_PREFIX = 0b_11111111_11111111_00000000_00000000
Masks the 16 most significant bits of the multicast group address. To check whether the address is Cyphal/UDP.
"""
-SUBJECT_ID_MASK = 2**15 - 1
+SUBJECT_ID_MASK = 0b_00000000_00000000_00011111_11111111
"""
-Masks the 14 least significant bits of the multicast group address (v4/v6) that represent the subject-ID. (Message)
+Masks the 13 least significant bits of the multicast group address (v4/v6) that represent the subject-ID. (Message)
"""
DESTINATION_NODE_ID_MASK = 0xFFFF
@@ -38,7 +38,7 @@ SNM_BIT_MASK = 0b_00000000_00000001_00000000_00000000
Service, Not Message: Masks the bit that determines whether the address represents a Message (=0) or Service (=1)
"""
-CYPHAL_UDP_IPV4_ADDRESS_VERSION = 0b_00000000_00100000_00000000_00000000
+CYPHAL_UDP_IPV4_ADDRESS_VERSION = 0b_00000000_01000000_00000000_00000000
"""
Cyphal/UDP uses this bit to isolate IP header version 0 traffic
(note that the IP header version is not, necessarily, the same as the Cyphal Header version)
--
2.37.5
- 主要语言
- Python
- 星标
- 142
- 派生
- 110
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OpenCyphal/pycyphal 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 48/100
OpenCyphal/pycyphal#396 ·
-
class-feature domain-core help wanted severity-minor
难度 4/5 3-5 天 新手友好度 38/100
OpenCyphal/pycyphal#339 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
OpenCyphal/pycyphal#338 · 3 条评论 ·
-
DiagnosticPublisher attempts to use the main asyncio event loop from worker threads (which fails)未关闭class-defect domain-core help wanted severity-major
难度 3/5 1-2 天 新手友好度 45/100
OpenCyphal/pycyphal#336 ·
-
class-defect domain-core help wanted severity-minor
难度 3/5 1-2 天 新手友好度 38/100
OpenCyphal/pycyphal#334 ·
查看 OpenCyphal/pycyphal 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 76/100
autowarefoundation/autoware_carla_scenario#1485 ·
维护者通常 1 天内回复
-
needs-area-label
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 2 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 84/100
Official-Space-AI/OpenPhysGraspGen#114 ·
维护者通常 2 天内回复
-
changelog investigate
难度 2/5 1-3 小时 新手友好度 62/100
ramnes/notion-sdk-py#441 ·
-
copy_tree splits same-file errors into characters可能已有人在做 @Gambit-Checkmate 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 14 天内回复