Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8419731
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:41:34+00:00 2026-06-10T02:41:34+00:00

I have a packet and a checksum function. Before sending out the packet, the

  • 0

I have a packet and a checksum function. Before sending out the packet, the checksum field is 0. I calculate the checksum and add the value to the checksum field. At the receiving end, when I use the same checksum function, I get a mismatch because when calculating at the sender end, checksum is initially 0, but at the receiver end the checksum is a different, non zero value.

Work around for this is at the receiver end, make the checksum field equal to 0 and calcuate the checksum but this is not very elegant.

I have been looking for a solution for this but of no avail. The checksum function is pretty standard one and its a black box to me.

How should I fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:41:35+00:00Added an answer on June 10, 2026 at 2:41 am

    You should not include the checksum digits in the checksum calculation. Calculate the checksum on all bytes excluding the checksum bytes.

    By including the bytes reserved to hold the checksum in the checksum calculation, you are burning a few extra CPU cycles and gaining nothing at all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If I have a packet sending out from a LAN, can I find out
I have a header field of 2 bytes where first four bits are packet
I need to calculate the checksum of an IP packet as described in http://www.faqs.org/rfcs/rfc1071.html
I have this udp packet: P = <<83,65,77,80,188,64,172,85,30,144,105,0,0,0,50,0,7,0,0,0,115,97,109,112,45,114,112,11,0,0,0,149,78,87,149,82,80,149,118,50,46,50,11,0,0,0,83,97,110,32,65,110,100,114,101,97,115>> 14-15 byte is the players var
I have a struct struct Packet { int senderId; int sequenceNumber; char data[MaxDataSize]; char*
I have a Full Speed device that specifies the max packet size as 256
I have the following code int ParseData(unsigned char *packet, int len) { struct ethhdr
I have a server application that receives some special TCP packet from a client
I have a java program which sends a udp packet to a server when
In my application I have a PacketList class and Packet class. I'd like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.