winsock: UDP-Rx without checksum

E

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!
 
B

Ben Voigt [C++ MVP]

Ezmeralda said:
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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top