作者cholid (熊猫)
看板Network
标题[问答] 关於ip header timestamp的pointer
时间Tue Nov 1 00:26:19 2011
想请问有关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