Hi all,
I know that pseudo headers are used to calculate the checksum in udp and tcp packets.I want to know the exact problem, if we don't use the psudo header for the checksum calculation.
can any one tell the answer...
Thanks..
Hi all,
I know that pseudo headers are used to calculate the checksum in udp and tcp packets.I want to know the exact problem, if we don't use the psudo header for the checksum calculation.
can any one tell the answer...
Thanks..
Dear friend,
In a huge networking traffic , there might be a chance of entering the sent packet to the wrong destination ,so we can find the problem at least in the TCP layer.
For further references : Refer TCP/IP guide
>> I know that pseudo headers are used to calculate the checksum in udp and tcp packets.I want to know the exact problem, if we don't use the psudo header for the checksum calculation.
The "exact problem" is that you get an incorrect checksum. Simple as that.
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }