[問答] 關於ip header timestamp的pointer

看板Network作者 (熊貓)時間12年前 (2011/11/01 00:26), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
想請問有關ip header的timestamp http://www.networksorcery.com/enp/protocol/ip/option004.htm 如網址...這個定在RFC 791 我想請問的是..為什麼timestamp用的pointer這麼怪 Pointer. 8 bits, unsigned. 5 to ? The number of bytes from the beginning of this option to the end of Timestamp[] plus one (i.e., it points to the byte beginning the space for next timestamp). The timestamp area is full when Pointer is greater than Length. 它規定的是 指向下一個空的位置 然後再加 1 這個我不太懂為什麼要 +1 耶~~如果是說為了最後一行說的 full when pointer is greater than length 那根本不用這樣做吧? 只要equal就可以了~ 其他ip header相關的pointer 也都是從4開始 也就是指向下一個空的位置 就只有這個要多加1 ~ 一直想不透 謝謝回答~^^ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.113.121.240
文章代碼(AID): #1EhimkfI (Network)