home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

ICMP error with checksums

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2741
Discussions: 200,998, Posts: 2,379,976, Members: 246,366
Old November 16th, 2004, 03:18 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Jul 2002
Location: DC Suburbia
Posts: 190
Send a message via AIM to jon112981 Send a message via Yahoo to jon112981
ICMP error with checksums

Okay so I have this assignment for my Internet Protocols class to write a software router in C. Working wonderfully actually, learning a whole lot. I have a question though based on the checksum that hopefully someone can answer. All of my IP packets that are forwarded have a decremented TTL and a checksum calculated by a function that was written in the text and when I open them in say ethereal, it says checksum correct. IF there is an error my router is to generate the ICMP error message. This is the encapsulated ICMP error inside an IP packet inside an ethernet packet. The checksum in the ICMP protion is calculated by this function and ethereal says it is wrong. The IP checksum is perfectly fine however. Can anyone think of a reason why this is so? Am I overlooking something in the ICMP checksum. I know ICMP takes a checksum over the entire packet where as IP takes it only over the header. I am still passing into the functin the entire ICMP packet (as a uint16_t as the function needs) and saving the checksum to a member of the ICMP struct, and yes it is the right one. Everything else in the ICMP packet is fine and all other parts of the other packets are fine. Any ideas?
jon112981 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you deny ping requests? implexant Networking and Internet 17 June 30th, 2009 08:44 AM
ICMP checksum Error jon112981 Networking and Internet 0 November 16th, 2004 01:06 PM
can't connect to vpn thru win 2000pro dhcp rpiquette Networking and Internet 7 April 27th, 2004 01:37 PM
Port 113 and Ping Detritus Networking and Internet 9 March 16th, 2004 08:18 AM
ISP network probelms. hav0c Networking and Internet 1 June 25th, 2002 08:31 AM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3102)
Charges against non-tippers dropped.. (22)
Health Care Rationing (17)
Foxconn Blackops x48 MoBo (5)
Nvidia GTX 260 problem (14)
Delete an OS (18)
Laptop with wireless problem. (13)
Wireless Televisions. (12)
windows vista security holes (19)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (9)
[F@H SPAM 11/16/09] ! 1/2 months to.. (41)
windows 7 problem (7)
Recent Discussions
EVGA 9800 gtx help with finding a goo.. (13)
"Documents and Settings" fo.. (7)
Delete an OS (18)
Outputing 1080p from my PC to my 720p.. (0)
panasonic dmr ez48veb recorder (0)
add ram to existing (3)
Need help getting speakers to work (2)
Nvidia GTX 260 problem (14)
Laptop with wireless problem. (13)
Point and Shoot Camera Suggestions. (9)
Is the PSU I received dead? (16)
FreeAgent drive software not x64 comp.. (1)
Intel 5100 AGN issues fixed yet? (28)
Foxconn Blackops x48 MoBo (5)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (41)
Print spooler problem (17)
Q9650 vs. Q9550 (2)
Desktop Calendar Application (2)
Looking for new motherboard (1)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Size after cutting 700Mb file is 2.5 .. (0)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)


All times are GMT -4. The time now is 12:54 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28