locked
WskSendTo returns STATUS_DATA_NOT_ACCEPTED RRS feed

  • Question

  • My call to WskSendTo returns STATUS_DATA_NOT_ACCEPTED:

    ((PWSK_PROVIDER_DATAGRAM_DISPATCH)m_socket->Dispatch)->WskSendTo(m_socket, &wskbuf, 0, (PSOCKADDR)&IPv4RemoteAddress, 0, NULL, m_irp);

    The buffer is allocated from NonPagedPool and should be correctly created. Any ideas?

    Tuesday, March 13, 2012 7:30 PM

All replies

  • Have you bound the socket to a local address?


    Thomas F. Divine http://www.pcausa.com

    Tuesday, March 13, 2012 8:46 PM
  • Yes and I even see the binding in netstat. I just tried out my UDP code inside a kernel-mode service and it works like a charm. In contrast to my driver environment, the service runs at PASSIVE and not DISPATCH_LEVEL. Could this be an issue?
    • Edited by stefan02 Tuesday, March 13, 2012 10:50 PM
    Tuesday, March 13, 2012 10:09 PM
  • It has been a few years, but has anybody found a solution to this?

    I also found that if I send the datagram packet to the same machine that sent the packet, there is no error.  If I send the packet to another machine, STATUS_DATA_NOT_ACCEPTED is returned.

    Note: All Virus scanners and firewalls have been disabled.

    Monday, April 22, 2019 7:38 PM