Skip to content

openkal-kit 0.3.1: a port is formatted with all its digits - #65

Merged
Sunrisepeak merged 1 commit into
mainfrom
fix/kit-0.3.1
Nov 9, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
fix/kit-0.3.1

Conversation

@Sunrisepeak

@Sunrisepeak Sunrisepeak commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Summary

  • kal::kit::format_v4 wrote at most three digits of each number. That is every digit of an octet but not of a port: port 8080 came out as 127.0.0.1:080. Each number is now written whole, and the octets are written as before. The 22-character bound already allowed for 255.255.255.255:65535.
  • The kit's test formats ports 0 (written as no port), 80, 8080 and 65535, and reads each one back.
  • kit/mcpp.toml: version 0.3.1. The Linux dev-dependency names openkal-linux 0.26.0, the implementation of openkal 0.25 (0.25.0 requires openkal 0.24).

The specification is unchanged; only the kit package (tag kit-0.3.1) is released.

Test plan

  • CI run 42699860374 green at bdbf73c (16 checks): the kit's tests (tools/run-kit-tests.sh openkal-linux, gcc and llvm: kit ... ok) and the rest of the suite.

format_v4 wrote at most three digits of each number, which is every digit
of an octet and not of a port: port 8080 came out as "127.0.0.1:080".
Each number is now written whole; the octets are written as before. The
kit's test formats ports 0, 80, 8080 and 65535 and reads each back. The
kit's Linux dev-dependency names openkal-linux 0.26.0, the implementation
of openkal 0.25.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant