Hi all,
I am trying to calculate checksum of some data using python.

I am putting a sample ICMP header here and the correct checksum of that packet(Got this by sniffing network with wireshark)

DATA is "08 00 69 eb 8e 13 00 01"

And the correct checksum is "0xa9eb". as shown in the wireshark as correct.

And your code and reference for the sources of information you are supporting it? And what is your problem with it?

actually i am trying to send ICMP packets usong python.So for that reason i have to calculate the header checksum of that packet.I wanna do it with a script.Where i have to enter the header "4e 1c c0 ....."in this format ant it will generate the checksum.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.