Calculating UDP Checksum - HOW?

Henderieckx Filip Filip.Henderieckx at siemens.atea.be
Fri Jul 19 18:39:10 EDT 2002


Hi,

I have following situation :

CLICK Configuration (partly) :

-> StoreIPAddress(16) : This element overwrites the Destination IP Address
-> SetIPChecksum() : This element recalculates the IP Checksum

But : in case of a UDP packet, it appears that also the UDP Checksum has to
be recalculated.

How can I do this?

I tried the SetTCPChecksum() Element (don't know in fact whether this is the
correct way to do but I didn't found an SetUDPChecksum element) and this
Element changes the packet so that the UDP checksum is correct but it
doesn't change the UDP checksum field. It changes 2 bytes in an underlying
protocol (e.g. RTP which is under UDP) thereby destroying the correct
working of this protocol???
Is this an error in the SetTCPChecksum Element?

How can this be explained? Or do you have knowledge about other Elements I
should use to have a correct UDP Checksum

Note : the IPREWRITER Element seems to automatically update the UDP
Checksum...

thanks in advance for your answer,

kind regards,

Filip Henderieckx





More information about the click mailing list