HostWeb Forums » Microsoft Server Operating Systems » microsoft.public.win2000.developer » winsock: UDP-Rx without checksum
Topic: 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!
Replies below ↓
Replies
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!
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?