Мой профессор отправил мне это сообщение:
So you have to split the ICMP header + payload (data) into 16 bit words (using 0x0000 for the checksum field) like this:
As to the ICMP checksum example in our review slides. “CPSC” is the data payload in the ICMP message. The type takes 8 bits, and the code also takes 8 bits.
8 & 0 à 00001000 00000000 (first 16 bit words)
(checksum field before you fill this filed)à 00000000 00000000
10 (identifier)à 00000000 00001010
(seq #) à 00000000 00000001
C &P (data) à 01000011 01010000
S &C (data)à 01010011 01000011
Calculate 16-bit ones's complement of the one's complement sum of the above 16-bit words.
Будет ли ответ 1001011010100010? Спасибо за любую помощь! Я новичок в этом