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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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時間 初心者へのやさしさ 68/100
Arekkazu/sgpmp-backend#744 ·
メンテナーはふだん 1 日以内に返信
-
agent/reviewer
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
projectbluefin/utah-packages#634 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue help wanted
難易度 2/5 1〜2日 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
home-assistant/core#188613 ·
メンテナーはふだん 1 日以内に返信
-
Websiteオープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 91/100
TanbirRamim/open-source-radar#314 ·
メンテナーはふだん 1 日以内に返信