winsock: UDP-Rx without checksum

Discussion in 'Microsoft Windows 2000 Developer' started by Ezmeralda, Jun 26, 2007.

  1. Ezmeralda

    Ezmeralda Guest

    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!
     
    Ezmeralda, Jun 26, 2007
    #1
    1. Advertisements

  2. "Ezmeralda" <> wrote in message
    news:...
    > 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?
     
    Ben Voigt [C++ MVP], Jul 24, 2007
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sherfrose

    Help please Winsock control Error...!

    sherfrose, Sep 3, 2003, in forum: Microsoft Windows 2000 Developer
    Replies:
    0
    Views:
    768
    sherfrose
    Sep 3, 2003
  2. Edmunde Lee

    RSM "Prepare" a tape WITHOUT using the MMC snap-in

    Edmunde Lee, Oct 30, 2003, in forum: Microsoft Windows 2000 Developer
    Replies:
    0
    Views:
    781
    Edmunde Lee
    Oct 30, 2003
  3. walala

    how to lock keyboard and mouse without administrator previledge?

    walala, Nov 10, 2003, in forum: Microsoft Windows 2000 Developer
    Replies:
    0
    Views:
    655
    walala
    Nov 10, 2003
  4. Jaime Boloix
    Replies:
    3
    Views:
    1,019
    Richard MacKinnon
    Jan 3, 2004
  5. Guest

    receiving the IP header with a UDP datagram

    Guest, Apr 14, 2004, in forum: Microsoft Windows 2000 Developer
    Replies:
    4
    Views:
    1,598
    John Phillips
    Apr 16, 2004
Loading...

Share This Page