UDP endpoint mapping uses incorrect masking values.
@maksimdrachov đang làm issue này rồi.
Từ ngày 29/6/2023.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
---
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
- Ngôn ngữ chính
- Python
- Star
- 142
- Fork
- 110
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenCyphal/pycyphal
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 48/100
OpenCyphal/pycyphal#396 ·
-
Add flush() functionalityĐang mởclass-feature domain-core help wanted severity-minor
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
OpenCyphal/pycyphal#339 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
OpenCyphal/pycyphal#338 · 3 bình luận ·
-
DiagnosticPublisher attempts to use the main asyncio event loop from worker threads (which fails)Đang mởclass-defect domain-core help wanted severity-major
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
OpenCyphal/pycyphal#336 ·
-
class-defect domain-core help wanted severity-minor
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 38/100
OpenCyphal/pycyphal#334 ·
Tất cả issue của OpenCyphal/pycyphal
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
nansencenter/geodataset#39 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
awslabs/visual-asset-management-system#804 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
follow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[18.0] werkzeug: AttributeErrorĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
odoo/odoo#297927 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
link-rot
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 67/100