![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| directory checksum error | jagan_kalluri | UNIX for Dummies Questions & Answers | 2 | 10-16-2008 08:11 AM |
| checksum | jn5519 | SCO | 3 | 07-05-2007 07:32 PM |
| Directory is Same but Checksum is different | JustinPyfrom | Filesystems, Disks and Memory | 3 | 01-30-2007 07:54 AM |
| Checksum Key Files | adamevans | AIX | 1 | 01-22-2007 11:19 PM |
| Checksum question | jigarlakhani | Shell Programming and Scripting | 1 | 12-05-2005 10:31 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Disabling IP Checksum Calculation
Hello Friends,
I'm constructing the IP Packets by using the RAW Sockets. If I give any value for VER/TTL/Protocol the packet is being transmitted with that particular values. But in case of IP Checksum, I'm always getting the correct checksum value irrespective of the value I give. Can anyone please let me know, who is filling the correct checksum and how to disable it?? Thanks in Advance. Regards, Aamir |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Disabling that functions is a feature of most ethernet cards, it's called "TCP checksum offload". Under Linux you have to execute : "ethtool -K eth0 rx off tx off" - replace eth0 if different name is used, and consult the man pages for "ethtool"
|
|
#3
|
||||
|
||||
|
Quote:
AFAIK, if you include the ip header (which you did) then the kernel will compute that checksum for you if checksum field is 0 otherwise your packet will be sent using that value... So your problem seems a bit weird to me too |
|
#4
|
|||
|
|||
|
Hello,
I'm getting the following error when running "ethtool -K eth0 rx off tx off" Cannot set device rx csum settings: Operation not supported. Thanks in Advance. Regards, Aamir |
|
#5
|
||||
|
||||
|
Like I said, this option is available only for certain NICs, it may be the case that you network card doesn't support it. I'm not aware of any other option.
|
|
#6
|
|||
|
|||
|
Hello Friends,
I was able to do it by using PF_PACKET option and form the entire packet (ie ethernet+ip+udp). What ever checksum i give for ip is not getting modified now. Thanks a lot for your help. Regards, Aamir |
|||
| Google The UNIX and Linux Forums |