<p>Unfortunately there are no "common values" for <code>AF_INET6</code>. Posix is only an API and not an ABIĀ or fixes any values.</p>
<p>I did the same mistake and had to revert my change in <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="313792681" data-permission-text="Issue title is private" data-url="https://github.com/RIOT-OS/RIOT/issues/8940" data-hovercard-type="pull_request" data-hovercard-url="/RIOT-OS/RIOT/pull/8940/hovercard" href="https://github.com/RIOT-OS/RIOT/pull/8940">#8940</a></p>
<p>Quote from that PR:</p>
<blockquote>
<p>So even right now, if we look at the values of AF_INET6, they are not compatible:</p>
<pre><code>* RIOT: 4
* Linux: 10
* MAC: 30
</code></pre>
</blockquote>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/12145?email_source=notifications&email_token=ABE7WYAJQD3XPKSV5YTHBQLQHURQZA5CNFSM4IS3ZJC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5WANLA#issuecomment-527173292">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYESEFHQTHQA7BU7AC3QHURQZANCNFSM4IS3ZJCQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYDJVQ66XBO6GPKYYCTQHURQZA5CNFSM4IS3ZJC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5WANLA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/12145?email_source=notifications\u0026email_token=ABE7WYAJQD3XPKSV5YTHBQLQHURQZA5CNFSM4IS3ZJC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5WANLA#issuecomment-527173292",
"url": "https://github.com/RIOT-OS/RIOT/pull/12145?email_source=notifications\u0026email_token=ABE7WYAJQD3XPKSV5YTHBQLQHURQZA5CNFSM4IS3ZJC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5WANLA#issuecomment-527173292",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>