[Asterisk-Users] "Received packet with bad UDP checksum" - whats the real problem?

Olle E. Johansson oej at edvina.net
Thu Jul 28 00:55:39 MST 2005


Tim Karl wrote:
> I don't know if this will help, but the checksum is part of the UDP
> header which should be computed by the sender prior to the data being
> sent. It is computed using the data that is to be sent. UDP at the
> sender side performs the one's complement of the sum of all the 16-bit
> words in the segment. This result is put in the checksum field of the
> UDP segment. When it gets to the receiver all of the 16 bit words are
> added together with the checksum. If the result is all 1's, then there
> are no errors. Otherwise, there are errors. So, unless the hardware
> sending out the data is computing the checksum incorrectly, my guess is
> that it is network related.
> 
...also note that the code in 1.0.x is platform dependent. On a *BSD
system you will get a lot of these, but they're all wrong. Linux and BSD
sends the same error code for different reasons...

/O



More information about the asterisk-users mailing list