110,7 → 110,7 |
/** This field indicates the next level protocol used in the data portion of the internet datagram. |
*/ |
uint8_t protocol; |
/** A checksum on the header only. |
/** A checksum of the header only. |
* Since some header fields change (e.g., time to live), this is recomputed and verified at each point that the internet header is processed. |
* The checksum algorithm is: The checksum field is the 16~bit one's complement of the one's complement sum of all 16~bit words in the header. |
* For purposes of computing the checksum, the value of the checksum field is zero. |
124,7 → 124,14 |
uint32_t destination_address; |
} __attribute__ ((packed)); |
|
/** Type definition of the internet option header. |
* @see ip_header |
*/ |
typedef struct ip_option ip_option_t; |
|
/** Type definition of the internet option header pointer. |
* @see ip_header |
*/ |
typedef ip_option * ip_option_ref; |
|
/** Internet option header. |