Bug 22166 – On OpenBSD and Android make core.sys.posix.arpa.inet: htonl, htons, ntohl, & ntohs work correctly on big endian architectures

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-08-01T20:40:08Z
Last change time
2021-08-02T14:18:25Z
Keywords
pull
Assigned to
No Owner
Creator
Nathan S.

Comments

Comment #0 by n8sh.secondary — 2021-08-01T20:40:08Z
Currently on OpenBSD and Android, core.sys.posix.arpa.inet: htonl, htons, ntohl, & ntohs always return the argument with its byte order reverse. They should return the argument unchanged on big endian architectures.
Comment #1 by dlang-bot — 2021-08-01T20:43:11Z
@n8sh created dlang/druntime pull request #3531 "[stable] On OpenBSD and Android make core.sys.posix.arpa.inet: htonl, htons, ntohl, & ntohs work correctly on big endian architectures" fixing this issue: - Fix 22166 - On OpenBSD and Android make core.sys.posix.arpa.inet: htonl, htons, ntohl, & ntohs work correctly on big endian architectures https://github.com/dlang/druntime/pull/3531
Comment #2 by dlang-bot — 2021-08-02T07:41:53Z
dlang/druntime pull request #3531 "[stable] On OpenBSD and Android make core.sys.posix.arpa.inet: htonl, htons, ntohl, & ntohs work correctly on big endian architectures" was merged into stable: - 97ae43ad05776e5f4fb24cd7b9e62cccb636aa11 by Nathan Sashihara: Fix 22166 - On OpenBSD and Android make core.sys.posix.arpa.inet: htonl, htons, ntohl, & ntohs work correctly on big endian architectures https://github.com/dlang/druntime/pull/3531
Comment #3 by dlang-bot — 2021-08-02T14:18:25Z
dlang/druntime pull request #3535 "Merge branch 'stable' into merge_master" was merged into master: - 3cc1e953cb667661e9b8d86f3c1ae0b9bc4c5e60 by Nathan Sashihara: Fix 22166 - On OpenBSD and Android make core.sys.posix.arpa.inet: htonl, htons, ntohl, & ntohs work correctly on big endian architectures https://github.com/dlang/druntime/pull/3535