Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site brl-tgr.ARPA Path: utzoo!linus!philabs!cmcl2!seismo!brl-tgr!ron From: ron@brl-tgr.ARPA (Ron Natalie) Newsgroups: net.lan Subject: Re: (DoD) InterNet Header Checksum Message-ID: <4985@brl-tgr.ARPA> Date: Mon, 1-Oct-84 17:01:15 EDT Article-I.D.: brl-tgr.4985 Posted: Mon Oct 1 17:01:15 1984 Date-Received: Tue, 2-Oct-84 07:29:54 EDT References: <624@ttds.UUCP> Organization: Ballistics Research Lab Lines: 11 I thought that the ones complement sum was just XORing everything together...wrong. The code that I have (that works) adds the word to the running total. If the carry bit as a result, one is added to the total. The total is then one's complemented. -Ron sum = 0; sum += *p++;