test: fix, restore and improve cnetaddr scoped id documentation #21961
pull jonatack wants to merge 2 commits into bitcoin:master from jonatack:fix-and-improve-cnetaddr-scoped-id-test-documentation changing 1 files +5 −1-
jonatack commented at 10:26 AM on May 16, 2021: contributor
-
test: remove comment orphaned by commit 63631be d072e93eaa
-
test: add scoped id information/context from commit 6ab76c0 dbd1dc1fad
- fanquake added the label Tests on May 16, 2021
- jonatack cross-referenced this on May 17, 2021 from issue test: Remove intermittently failing and not very meaningful `BOOST_CHECK` in `cnetaddr_basic` by practicalswift
-
in src/test/net_tests.cpp:309 in dbd1dc1fad
305 | + // zone id, for example, given a link-local address of "fe80::1" and a zone 306 | + // id of "32", return the address as "fe80::1%32". An exception is macOS, 307 | + // which does not support scoped ids and instead returns the address in a 308 | + // different format as "fe80:0:0:0:0:0:0:1" without the zone id. 309 | const std::string link_local{"fe80::1"}; 310 | const std::string scoped_addr{link_local + "%32"};
laanwj commented at 2:09 PM on May 17, 2021:I don't really know this code but isn't the "e.g. 32" comment still relevant to this line?
jonatack closed this on May 17, 2021jonatack commented at 2:27 PM on May 17, 2021: contributorClosing as we no longer return any scoped ids. There is still a line of orphaned documentation but probably no one will notice.
laanwj cross-referenced this on May 17, 2021 from issue net: Return IPv6 scope id in `CNetAddr::ToStringIP()` by laanwjlaanwj referenced this in commit 2fc111b6e3 on May 19, 2021sidhujag referenced this in commit b2255c1f29 on May 19, 2021bitcoin locked this on Aug 16, 2022LabelsLinked (view graph)#21689 test: Remove intermittently failing and not very meaningful `BOOST_CHECK` in `cnetaddr_basic`#21690 test: use higher value and per-platform assert in cnetaddr link-local test#21756 Avoid calling `getnameinfo` when formatting IPv6 addresses in `CNetAddr::ToStringIP`#21982 Regression: CNetAddr scoped id/zone indices functionality#21985 net: Return IPv6 scope id in `CNetAddr::ToStringIP()`
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:54 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:54 UTC