From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa751,9eacd4f8141cdf02 X-Google-Attributes: gidfa751,public X-Google-Thread: 100159,9eacd4f8141cdf02 X-Google-Attributes: gid100159,public X-Google-Thread: 10d752,9eacd4f8141cdf02 X-Google-Attributes: gid10d752,public X-Google-Thread: 10996c,9eacd4f8141cdf02 X-Google-Attributes: gid10996c,public X-Google-Thread: f9325,9eacd4f8141cdf02 X-Google-Attributes: gidf9325,public X-Google-Thread: fa970,9eacd4f8141cdf02 X-Google-Attributes: gidfa970,public X-Google-Thread: 10d52b,9eacd4f8141cdf02 X-Google-Attributes: gid10d52b,public X-Google-Thread: 1164f8,9eacd4f8141cdf02 X-Google-Attributes: gid1164f8,public From: pete@stl.nexen.com (Pete Flugstad) Subject: Re: High Speed TCP/IP Data Needed Date: 1996/05/06 Message-ID: #1/1 X-Deja-AN: 153284143 references: <31865FBD.16F1@auc.trw.com> <4mbvb1$5un@duck.inetnebr.com> followup-to: comp.dcom.cell-relay,comp.protocols.tcp-ip,comp.sys.sgi.hardware,comp.sys.sgi.misc,comp.sys.convex,comp.sys.dec,comp.sys.hp.hardware,comp.sys.hp.misc,comp.sys.sun.hardware,comp.sys.sun.misc organization: Ascom Nexion, Inc. newsgroups: comp.dcom.cell-relay,comp.protocols.tcp-ip,comp.sys.sgi.hardware,comp.sys.sgi.misc,comp.sys.convex,comp.sys.dec,comp.sys.hp.hardware,comp.sys.hp.misc,comp.sys.sun.hardware,comp.sys.sun.misc From: raj@cup.hp.com (Rick Jones) > > Pete Flugstad (pete@stl.nexen.com) wrote: > : Actually, it's 8 bytes, from rfc768: > : ... > : The checksum is on the (pseudo IP) /UDP header only, so there is no > : protection for the data. > > Also from RFC 768, page two, third paragraph: > > Checksum is the 16-bit one's complement of the one's complement > sum of a pseudo header of information from the IP header, the UDP > header, and the data, padded with zero octets at the end (if > ^^^^^^^^^^^^ > necessary) to make a multiple of two octets. > > It does indeed cover the data. Gaak, how did I miss that... (sheepish grin :-). I'll also note (from rfc768 again, I read it this time): An all zero transmitted checksum value means that the transmitter generated no checksum (for debugging or for higher level protocols that don't care). and ask the question: Does anyone know if UDP checksums are commonly done, or are they commonly disabled? We've had problems in the past with flaky bridge chips corrupting the packet when transferring UDP packets from an ethernet chip (ethernet CRC passed) to main memory (for IP stack processing), and the UDP checksum was not catching it either because the sender was not calculating it, or the receiver was ignoring it. Pete -- Peter J. Flugstad Ascom Nexion pete@stl.nexen.com 1807 Park 270 Drive, Suite 350 +1 314 579 6520 St. Louis, MO 63146 USA #include #include