Skip to content

erts: support endian-aware port framing - #11441

Open
humdrum00001010 wants to merge 1 commit into
erlang:masterfrom
humdrum00001010:erts/open-port-packet-endian
Open

erts: support endian-aware port framing#11441
humdrum00001010 wants to merge 1 commit into
erlang:masterfrom
humdrum00001010:erts/open-port-packet-endian

Conversation

@humdrum00001010

Copy link
Copy Markdown

open_port/2 only supports big-endian packet headers, forcing callers of little- or native-endian protocols to implement framing in raw mode.

Allow {packet, {N, Endian}} for two- and four-byte headers on spawned and file-descriptor ports while preserving existing {packet, N} behavior. The change covers the Unix and Windows drivers and includes documentation and regression tests.

Closes #11411

open_port/2 only supports big-endian packet headers, forcing callers of little- or native-endian protocols to implement framing in stream mode.

Add {packet,{N,Endian}} for two- and four-byte headers while preserving existing {packet,N} behavior.
@CLAassistant

CLAassistant commented Aug 9, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

CT Test Results

Tests are running... https://github.com/erlang/otp/actions/runs/31325814313

Results for commit 38d5264

To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass.

See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally.

Artifacts

  • No CT logs found
  • No HTML docs found
  • No Windows Installer found

// Erlang/OTP Github Action Bot

@rickard-green rickard-green added the team:VM Assigned to OTP team VM label Aug 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team:VM Assigned to OTP team VM

Projects

None yet

Development

Successfully merging this pull request may close these issues.

erts: support endianness in open_port packet framing

3 participants