Skip to content

FreeBSD requires sin_len field to be set.#102

Merged
sustrik merged 3 commits into
sustrik:masterfrom
vlm:sin-len-fix
Mar 25, 2017
Merged

FreeBSD requires sin_len field to be set.#102
sustrik merged 3 commits into
sustrik:masterfrom
vlm:sin-len-fix

Conversation

@vlm

@vlm vlm commented Mar 24, 2017

Copy link
Copy Markdown
Contributor

Otherwise e.g. valgrind complains.

@sustrik

sustrik commented Mar 25, 2017

Copy link
Copy Markdown
Owner

Is this causing problems?

AFAIU this field is not required to be set, see here:

http://stackoverflow.com/questions/38913326/are-sockaddr-in-and-sockaddr-in6-still-using-sin-len-and-sin6-len

@vlm

vlm commented Mar 25, 2017 via email

Copy link
Copy Markdown
Contributor Author

@sustrik sustrik merged commit f6a52c5 into sustrik:master Mar 25, 2017
@sustrik

sustrik commented Mar 25, 2017

Copy link
Copy Markdown
Owner

Fair enough. Thanks for the patch!

@vlm

vlm commented Mar 25, 2017

Copy link
Copy Markdown
Contributor Author

Yeah, if you noticed there's a provision for setting the sin_len in the DNS library (the #if defined(SA_LEN) which I've extended), but it wasn't consistently applied.

@vlm

vlm commented Mar 25, 2017

Copy link
Copy Markdown
Contributor Author

Also, wahern/dns#21

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