From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randi Subject: Re: UDP data Date: Thu, 10 Feb 2011 12:14:29 +0700 Message-ID: <1297314869.2205.48.camel@godart> References: <1297309262.2205.14.camel@godart> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:cc:in-reply-to:references :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=dxpY3XyJE5WYHdOiX1WcwSYeJe6i+dBo/4Kh6dc88b8=; b=n2nJMOaSzb02U+1pojZ8Wck52WDj+yb+Ic/EYlL3aVcRLOY72ojbpdMrFYMOWmZM2x u6WAwq91t0LAUVEeOv4DxzULK/Cqj20ZnrhhGoeEPBL5XUx3KEQr79DKIPySX0t6nscW qscGzmZ3UlnXddAJhrMvbwpPN3gSlnq2MGvyY= In-Reply-To: Sender: linux-c-programming-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Chris Donovan Cc: linux-c-programming@vger.kernel.org Chris, optional means it can be enable or not, how to enable it and get the header to verify the checksum. On Thu, 2011-02-10 at 15:14 +1100, Chris Donovan wrote: > Yes the checksum is for the header and data. > Keep in mind that the checksum value is optional in ipv4, but required in ipv6. > > Chris- > > On Thu, Feb 10, 2011 at 2:41 PM, Randi wrote: > > Hi All, > > > > Since UDP socket is not reliable, what the common way in user level to > > check UDP communication's data for error (eg. malformed, corrupted, > > etc.)? is the checksum field in the UDP header (struct udphdr) intended > > to this problem? > > > > Randi