All of lore.kernel.org
 help / color / mirror / Atom feed
From: Randi <nightdecoder@gmail.com>
To: Chris Donovan <alienresidents@gmail.com>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: UDP data
Date: Thu, 10 Feb 2011 12:14:29 +0700	[thread overview]
Message-ID: <1297314869.2205.48.camel@godart> (raw)
In-Reply-To: <AANLkTik991ekzViW3e_amoNiO=4LB30snwbvDrwu61Nz@mail.gmail.com>

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 <nightdecoder@gmail.com> 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


  reply	other threads:[~2011-02-10  5:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTimck7ar6JPzSnNZo_baTz1usHLeUFxkL8GaqriV@mail.gmail.com>
2011-02-03 14:50 ` dynamic shared library ratheesh k
2011-02-03 14:59   ` Michal Nazarewicz
2011-02-10  3:41     ` UDP data Randi
2011-02-10  4:14       ` Chris Donovan
2011-02-10  5:14         ` Randi [this message]
2011-02-10 15:41           ` Glynn Clements
2011-02-10 18:43             ` David Astua
2011-02-10 20:49           ` Chris Donovan
2011-03-19 21:57     ` dynamic shared library Hendrik Visage

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1297314869.2205.48.camel@godart \
    --to=nightdecoder@gmail.com \
    --cc=alienresidents@gmail.com \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.