(E-Mail Removed) wrote:
> Suppose that I switch source and dest addresses in an IP header of an
> IP packet - should the checksum of the ip header be changed ?
> Or is the checksum algorithm indifferent to which is the IP src address
> and
> IP dest address in the ip header ?
What is the I here? Is this in a driver? In a user-space program?
Normally, the program that sends the actual packet will compute the
checksum, so you shouldn't need to change it no matter what it is and
whether it's right or not. Unless you're writing part of a network
stack, in which case you should definitely already know this stuff.
DS