Re: UDP data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I don't know libc, so I don't know what functions libc has to compute
(if any) the checksum.

I did find this page, that has some sample code though...
http://stackoverflow.com/questions/3737612/raw-socket-sendto-failed-using-c-on-linux

Chris-

On Thu, Feb 10, 2011 at 4:14 PM, Randi <nightdecoder@xxxxxxxxx> wrote:
> 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@xxxxxxxxx> 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
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Assembler]     [Git]     [Kernel List]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [C Programming]     [Yosemite Campsites]     [Yosemite News]     [GCC Help]

  Powered by Linux