Skip to content
This repository was archived by the owner on Sep 29, 2024. It is now read-only.

Endianness-agnostic IPv4/UInt32 conversions #46

Merged
merged 2 commits into from
Nov 5, 2018

Conversation

keeshux
Copy link
Member

@keeshux keeshux commented Nov 5, 2018

I don't seem to get endianness right apparently... but this should fix the issue once and for all. DNSResolver now takes input and returns output in host endianness, and uses the standard BSD API inet_pton/inet_ntop.

Endianness is crucial because iOS devices are big endian whereas macOS devices are little endian, and this library is meant to be compatible with both.

@keeshux keeshux self-assigned this Nov 5, 2018
@keeshux keeshux added the bug Something isn't working label Nov 5, 2018
@keeshux keeshux added this to the 1.3.1 milestone Nov 5, 2018
@keeshux keeshux force-pushed the endianness-agnostic-dns branch from 87cda1c to 9cf9725 Compare November 5, 2018 19:28
@keeshux keeshux merged commit dbd5521 into master Nov 5, 2018
@keeshux keeshux deleted the endianness-agnostic-dns branch November 5, 2018 19:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant