Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Recalculating IPv4 checksum: Page 1 of 4 (4 Items)
   
Recalculating IPv4 checksum  
I'm working on an IP driver, mounted in io-net with the full TCP/IP stack, under QNX 6.3.2.  If I need to update a piece
 of a packet on its way through my driver, how should I recalculate the IP checksum?

I've read up on RFC 1071, dealing with calculating IP checksums, but if the stack already provides a way to update it 
for me, then I would rather use that then write one of my own.  Since updating the TTL is something that should be done 
on every hop, I was surprised when I couldn't find anything on it when searching the QNX/Foundry27 sites.  Perhaps this 
is typically only done by the stack and not by the drivers... but is there a way for a driver to do it?