"fe80:6666:6666:6666:6666:6666:6666:6666" is not a valid IPv6 link-local address
未關閉
還沒有人認領這個 Issue。
stdlib
type-bug
- 主要語言
- Python
- 星號
- 77.2k
- 分支
- 35.9k
- PR 合併指標
- PR 指標待擷取
描述
Bug description:
>>> import ipaddress
>>> ipaddress.IPv6Address("fe80:6666:6666:6666:6666:6666:6666:6666").is_link_local
True
The spec says there must be 54 bits of zero.
the address must be within fe80::/64, not merely within fe80::/10.
2.5.6. Link-Local IPv6 Unicast Addresses
Link-Local addresses are for use on a single link. Link-Local
addresses have the following format:
| 10 |
| bits | 54 bits | 64 bits |
+----------+-------------------------+----------------------------+
|1111111010| 0 | interface ID |
+----------+-------------------------+----------------------------+
CPython versions tested on:
3.13
Operating systems tested on:
No response
Linked PRs
- gh-155384
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
首先重現 IPv6Address 範例,並檢查 ipaddress 實作中的 is_link_local 行為。將結果與 RFC 4291 第 2.5.6 節進行比較,並為 fe80::/64 要求新增或更新測試。當提供的位址不再被回報為 link-local,而有效位址仍維持該狀態時,即表示完成;已連結的 PR gh-155384 顯示相關工作已在進行中。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- networking
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 25/100