Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site ucbvax.BERKELEY.EDU Path: utzoo!decvax!decwrl!ucbvax!a.cs.cmu.edu!don.provan From: don.provan@A.CS.CMU.EDU Newsgroups: mod.protocols.tcp-ip Subject: Re: IP, ICMP, TCP, and UDP checksumming. Message-ID: <23Oct85.223317.DP0N@A.CS.CMU.EDU> Date: Wed, 23-Oct-85 22:33:00 EDT Article-I.D.: A.23Oct85.223317.DP0N Posted: Wed Oct 23 22:33:00 1985 Date-Received: Thu, 24-Oct-85 11:14:13 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 9 Approved: tcp-ip@ucb-vax.arpa if you checksum the entire message (or header in IP), including the checksum field, you'll always get -0 regardless of what the sending entity put in the checksum field (assuming the packet isn't entirely zero, which isn't legal in IP and TCP and, i think, ICMP and UDP). if everyone used this approach (which, i believe, works just as well if the machine does your ones complement addition, although you'd check for +0 on a machine that normalized), we shouldn't have to worry about which one is "right". of course, when they change the checksum we'll all be up a creek...