There is a set of functions for TcpHeaderSlice that compute checksum without converting the type to a TcpHeader. I assumed to see similar set for Udp, but they are present only for a UdpHeader type. The user might not want to convert to a UdpHeader type just to compute the checksum as it is not necessary if you have a slice already.
There is a set of functions for TcpHeaderSlice that compute checksum without converting the type to a TcpHeader. I assumed to see similar set for Udp, but they are present only for a UdpHeader type. The user might not want to convert to a UdpHeader type just to compute the checksum as it is not necessary if you have a slice already.