<p>我遇到了以下创建Internet校验和的示例:</p>
<blockquote>
<p>Take the example IP header <code>45 00 00 54 41 e0 40 00 40 01 00 00 0a 00 00 04 0a 00 00 05</code>:</p>
<ol>
<li>Adding the fields together yields the two’s complement sum <code>01 1b 3e</code>.</li>
<li>Then, to convert it to one’s complement, the carry-over bits are added to the first 16-bits: <code>1b 3e + 01 = 1b 3f</code>.</li>
<li>Finally, the one’s complement of the sum is taken, resulting to the checksum value <code>e4c0</code>.</li>
</ol>
</blockquote>
<p>我想知道如何将IP头添加到一起以获得<code>01 1b 3e</code>?你知道吗</p>