Skip to content

[v2.4.x] common: fix byte order of AF_IB ofi_addr_set_port#12272

Open
ooststep wants to merge 1 commit into
ofiwg:v2.4.xfrom
ooststep:2.4.x
Open

[v2.4.x] common: fix byte order of AF_IB ofi_addr_set_port#12272
ooststep wants to merge 1 commit into
ofiwg:v2.4.xfrom
ooststep:2.4.x

Conversation

@ooststep
Copy link
Copy Markdown
Contributor

@ooststep ooststep commented May 21, 2026

The implementation of ofi_addr_get_port and ofi_addr_set_port did not allow for a succsessful round-trip of the sib_sid, which means users of these functions could not properly store and retrieve port information in a sockaddr. original port information could not be recreated and instead would get a byte flipped port.

instead, construct a host-ordered sid and then convert ordering on the full value

(cherry picked from commit 487707c)

@alekswn
Copy link
Copy Markdown
Contributor

alekswn commented May 21, 2026

bot:aws:retest

The implementation of ofi_addr_get_port and ofi_addr_set_port did
not allow for a succsessful round-trip of the sib_sid, which means users
of these functions could not properly store and retrieve port information
in a sockaddr.  original port information could not be recreated and instead
would get a byte flipped port.

instead, construct a host-ordered sid and then convert ordering on the full value

Signed-off-by: Stephen Oost <stephen.oost@intel.com>
(cherry picked from commit 487707c)
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.

2 participants