/**
* @brief This class represents a Pseudo IP header used to compute checksum of
- * transport level protocols.
+ * transport layer protocols.
*
* When TCP runs over IPv4, the method used to compute the checksum is defined
* in RFC 793.
pseudo_header.protocol = IPPROTO_TCP;
pseudo_header.header_length = htons( tcp_segment_size_in_bytes );
- uint8_t *pseudo_header_data = (uint8_t *) &pseudo_header;
+ uint8_t *pseudo_header_data = reinterpret_cast<uint8_t *>( &pseudo_header );
size_t pseudo_header_size_in_bytes = sizeof(pseudo_header);
uint8_t *tcp_header_data = Payload.get();
tcp_buffer + pseudo_header_size_in_bytes + tcp_header_size_in_bytes );
uint16_t cksum = calculate_checksum(
- (uint16_t *) tcp_buffer,
+ reinterpret_cast<uint16_t *>( tcp_buffer ),
pseudo_header_size_in_bytes + TcpHeaderSizeInBytes + tcp_payload_size_in_bytes
);