HostWeb Forums » Microsoft Server Operating Systems » microsoft.public.win2000.developer » winsock: UDP-Rx without checksum

Topic: winsock: UDP-Rx without checksum

Reply | New Topic | This is SPAM | This is Offensive

Submitted: 6/26/2007 11:57:32 AM

By: Ezmeralda
Hello,

I need to receive UDP Datagrams which do have no UDP-checksum, i. e.
UDP-checksum = 0x0000. My operating system is Windows 2000.
I tried with a normal socket


socket(PF_INET, SOCK_DGRAM, 0)


but obviously, I do not receive any datagram because of checksum.


Is it possible to disable checksum verification for RX-SOCK_DGRAM-
Sockets?
How?
Can you suggest a workaround if not?


Thanks!


Replies below ↓

Replies

Reply | New Topic | This is SPAM | This is Offensive

Submitted: 6/26/2007 11:57:32 AM

By: Ezmeralda

winsock: UDP-Rx without checksum

Hello,

I need to receive UDP Datagrams which do have no UDP-checksum, i. e.
UDP-checksum = 0x0000. My operating system is Windows 2000.
I tried with a normal socket


socket(PF_INET, SOCK_DGRAM, 0)


but obviously, I do not receive any datagram because of checksum.


Is it possible to disable checksum verification for RX-SOCK_DGRAM-
Sockets?
How?
Can you suggest a workaround if not?


Thanks!


Reply | New Topic | This is SPAM | This is Offensive

Submitted: 7/24/2007 4:51:59 PM

By: Ben Voigt

Re: winsock: UDP-Rx without checksum


"Ezmeralda" <ezmeralda@gmx.de> wrote in message
news:1182880652.574949.228260@n60g2000hse.googlegroups.com...
> Hello,
>
> I need to receive UDP Datagrams which do have no UDP-checksum, i. e.
> UDP-checksum = 0x0000. My operating system is Windows 2000.
> I tried with a normal socket
>
>
> socket(PF_INET, SOCK_DGRAM, 0)

There's setsockopt(UDP_NOCHECKSUM) which disables transmit checksums...
nothing I saw for receive. But zero is supposed to be always accepted, it
isn't a wrong checksum, it is no checksum at all (the true checksum must be
non-zero).

Have you any sort of firewall that might be discarding what it perceives as
"invalid" packets?



Contents
Home
Forums
About Us
Contact Us
Web Hosting:
Hosting Providers
How to choose a name
What is a Hosting Provider
Hosting Types
Choosing the right plan
 
Search
 
Login to HostWeb.com
Email
Password
If you do not have an account with us yet, join now - it's FREE!