Info on ICMP checksum calculation
Hi,
I am new to this kernel code.
I want to know, how this skb checksum works.
I have a driver, which appends the packet, with header of 24 bytes, when the packet goes out, and deletes 24 bytes, header from the packet, when it comes in.
What I am interested to know is, do I need to re-calculate skb->csum, after the 24 bytes has been removed from the packet.
I have another query, why icmp.c doesn't have any direct check for ICMP checksum, though it does have skb checksum verification.
One more query is, which part of the code, in linux, calculates the checksum for skb and update the skb->csum, when ethernet packet it recieved at the interface.
Thank in advance for your help.
Regards,
Anjanish
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com