dotpcap / packetnet

Official repository - High performance .Net assembly for dissecting and constructing network packets such as ethernet, ip, tcp, udp etc.
Mozilla Public License 2.0
483 stars 104 forks source link

TCP packet checksum in not hex #197

Closed zpqrtbnk closed 1 year ago

zpqrtbnk commented 1 year ago

When dumping a TCP packet to string, the checksum shows as:

TCP:               checksum = 0x18324 [valid]

So it looks like hex but 18324 is actually the decimal value.

Expected: 0x4794 (the hex value).