/* Given the host-byte-order value of the checksum field in a packet header, and the network-byte-order computed checksum of the data that the checksum covers (including the checksum itself), compute what the checksum field  */
guint16 in_cksum_shouldbe(guint16 sum, guint16 computed_sum)
/* Given the host-byte-order value of the checksum field in a packet header, and the network-byte-order computed checksum of the data that the checksum covers (including the checksum itself), compute what the checksum field  */
guint16 in_cksum_shouldbe(guint16 sum, guint16 computed_sum)
{
	guint32 shouldbe;
	shouldbe = sum;
	shouldbe += g_ntohs(computed_sum);
	shouldbe = (shouldbe & 0xFFFF) + (shouldbe >> 16);
	shouldbe = (shouldbe & 0xFFFF) + (shouldbe >> 16);
	return shouldbe;
}