<p></p>
<p>The latest version of musl updated <code>IPPROTO_MAX</code> in <code>/usr/include/netinet/in.h</code> to '263' after the addition of <code>IPPROTO_MPTCP</code>, which has a value of '262'.</p>
<p>Strace also <a href="2c721018cc3351ee4518f4f57bbf5b646f96d533">added IPPROTO_MPTCP</a>, but <code>IPPROTO_MAX</code> was not updated. This causes an assert to fail on Alpine Linux:</p>
<pre><code>xlat/inet_protocols.h:242:1: error: static assertion failed: "IPPROTO_MAX != 256"
242 | static_assert((IPPROTO_MAX) == (256), "IPPROTO_MAX != 256");
</code></pre>
<p>The question is, does it make sense to update <code>IPPROTO_MAX</code>, like musl did or not. If it makes sense, but strace has not updated it due to compatibility with glibc, I can patch the strace definition on Alpine Linux for the time being to match. But if there is a good reason not to update it, musl will probably revert that change.</p>
<p>One hint I found in the <a href="https://github.com/torvalds/linux/blob/master/tools/include/uapi/linux/in.h#L83">Linux source</a>. There <code>IPPROTO_MAX</code> is defined after <code>IPPROTO_MPTCP</code> in the enum, indicating the value equals to '263'.</p>
<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/strace/strace/issues/164">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AOVBTR7DWNWZO6UI4CV57CTSRK6O7ANCNFSM4T76IG4A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AOVBTR46BSR3JH4KRCECNMDSRK6O7A5CNFSM4T76IG4KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4LFGG2NQ.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/strace/strace/issues/164",
"url": "https://github.com/strace/strace/issues/164",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>